0

Ok so I am making a script that requires me to check in every so often and if I don't, it will automatically terminate. Is there any way for the script to ask me to make an input but if I don't input within say 10 seconds then the script will terminate?

Lukas
  • 1
  • 1

1 Answers1

0

Could be implemented using select with a timeout parameters, see also:

https://stackoverflow.com/a/3471853/5080177

sighingnow
  • 791
  • 5
  • 11