Hello,
I have a perl script in which i need run some other perl script.
The way I am doing this is through the system command i.e. something like this.
while(<read script names from a file>)
{
system("$script");
}
now, what I want to do is on the screen (STDOUT), I want to display something like
running my_script1.pl..........done!
running my_script2.pl.....failed!
I believe that when the system() function is called in a Perl script, the control is handed over to the script that is called within the system function and control is handed over to the parent only when the script is completed
what i need is when the script my_script1.pl is executed, then my script should print those dots (....) on the terminal screen every 2 seconds until i get a status from pass/fail status from my_script1.pl (or my_script2.pl)
can anybody help me with this.?
thanks
bcd
I have a perl script in which i need run some other perl script.
The way I am doing this is through the system command i.e. something like this.
while(<read script names from a file>)
{
system("$script");
}
now, what I want to do is on the screen (STDOUT), I want to display something like
running my_script1.pl..........done!
running my_script2.pl.....failed!
I believe that when the system() function is called in a Perl script, the control is handed over to the script that is called within the system function and control is handed over to the parent only when the script is completed
what i need is when the script my_script1.pl is executed, then my script should print those dots (....) on the terminal screen every 2 seconds until i get a status from pass/fail status from my_script1.pl (or my_script2.pl)
can anybody help me with this.?
thanks
bcd