Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Executing a command after the preceding command finished processing

by mr_ron (Chaplain)
on Mar 30, 2018 at 12:51 UTC ( #1212031=note: print w/replies, xml ) Need Help??


in reply to Executing a command after the preceding command finished processing

If you want to run the two programs at the same time and wait for both on a system with UNIX shell (wfm on bash and csh) you might try something like:

perl -e 'system q/\ (sleep 5; echo after 5) &\ (sleep 2; echo after 2) &\ wait; echo all done\ /'
Ron
  • Comment on Re: Executing a command after the preceding command finished processing
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1212031]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-11-29 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?