in reply to how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help

& does exactly the opposite of what you want. It causes the shell to not wait for its child to finish.

system is basically fork+exec+waitpid mixed into one.

system("zcat....> file1"); system("java file1");

Or if you don't want to wait for java to finish,

system("( zcat....> file1 && java file1 )&");
  • Comment on Re: how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help
  • Select or Download Code