Thanks. You're right. I want to send the filename to the subprocess process_tar.pl.
#!/usr/bin/perl print "\n" . $ARGV[0]; sleep 40;
Then after launching this, I want the parent script to carry on running and launch 5 more process_tar.pl's, then wait until one or more of these have finished before running any more.
So you're saying use fork for this?
In reply to Re^2: wrong pid
by js1
in thread wrong pid
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |