in reply to Re^4: Timed STDIN input via threads on Win32
in thread Timed STDIN input via threads on Win32
I badly need to make this timed STDIN work because the script will be used manually as well as run as a cron/scheduled task.
Here's one thought that may or may not work. How about using command line parameters and one of the Getopt modules to specify whether the script should run in batch mode (i.e. no user input) versus interactive mode (i.e. requires user to interact with the script). Going this route would mean that you can not bother with user input for the batch mode and to wait indefinitely for user input in interactive mode. Without knowing anything further about what your full code is doing, I think that this could potentially eliminate your timeout needs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Timed STDIN input via threads on Win32
by markperlb0y (Initiate) on Nov 19, 2013 at 04:55 UTC |