sdj has asked for the wisdom of the Perl Monks concerning the following question:
Hi i am executing two commands from my perl script.
1. zcat ... | gzip huge file. &
it takes lots of time
2. java huge file &
after above 1. is done.
how can i do this?
here is what I am doing but does not work:
system("zcat....> file1 &"); my $pid = fork(); waitpid($pid,0); system("java file1 &");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help
by GrandFather (Saint) on Jan 27, 2012 at 10:21 UTC | |
by BrowserUk (Patriarch) on Jan 27, 2012 at 10:26 UTC | |
by GrandFather (Saint) on Jan 27, 2012 at 10:32 UTC | |
|
Re: how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help
by ikegami (Patriarch) on Jan 27, 2012 at 22:00 UTC | |
|
Re: how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help
by fisher (Priest) on Jan 27, 2012 at 10:27 UTC | |
|
Re: how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help
by i5513 (Pilgrim) on Jan 27, 2012 at 15:40 UTC |