Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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 ( #950392=note: print w/replies, xml ) Need Help??


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

Play with sh !

system ("(zcat ... > file1 & wait; java file1)&"); your next sentence;
Now you need to know when java process end .., but it should be another question, right ?
  • Comment on Re: how do i execute dependant system commands in perl (i m trying waitpid but does not work) - please help
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950392]
help
Chatterbox?
[1nickt]: Hm well actually I guess it's not the trailing semi-colon that's at issue there, it's disambiguation between the ellipsis and the binary flip-flop
[1nickt]: Although the example given does not produce an error as stated, on my perl.
[1nickt]: perl -wE 'say for map { ... } 1..3;' # "Unimplemented at -e line 1" ... <c>perlsyn says that should throw a syntax error...
[karlgoethebier]: 1nickt: "Edge cases..." Yes, it seems so. Thanks Nick

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-11-18 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?