Thread Script is waiting for return key
(6 answers)
Opened by redeu at 2011-07-18 12:27
The script reads strings from textfile, which are the path of the directory.
Then it calls this subroutine: Code (perl): (dl
)
1 2 3 4 5 6 sub executeScripts { foreach(@executables) { chdir("../$_/"); print "$_: ".`./script.pl`.""; } } in @executables are strings, like "test", "test2", which are the directories. The functionality works, but after starting any perl-script i have to press return to start the script (it seems the shell is waiting for parameters?) Because i never read from commandline in the script... Maybe there is a possibility to tell the shell, that there are NO parameters? like "perl test.pl -t" for example (don't know what -t is, but like this way)... modedit Editiert von GwenDragon: Please add PERL-Tags to code; see http://www.perl-community.de/bat/poard/markup_help Last edited: 2011-07-18 13:54:37 +0200 (CEST) |