Thread Script is waiting for return key
(6 answers)
Opened by redeu at 2011-07-18 12:27
Hello, i tried to find a solution for this but i couldn't find anything...
Following problem: I have a script, which reads data. The script works fine, but after starting it with the command line (using perl test.pl) it waits until i press the return key, after pressing the script is proceed. This was no problem until now, because now i want to start more than one of these scripts with a special script which includes a timer. This script starts several other scripts. The timer works fine, but it only calls the scripts if i press return... E.g. the timer proceeds each script every 5 seconds, if i have 3 scripts to start and i press 5 times the return key, it proceeds all 3 scripts and after 5 seconds only the first 2 of them. Is there any way that a script doesn't wait for the return key pressed? Is this the way to use parameter for the script? (because using "perl test.xml 1234" results in "Can't open 1234: No such file or directory.") Is there a way to deactivate this? I hope you have some advice for me. Last edited: 2011-07-18 12:31:00 +0200 (CEST) |