Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parallel execution from a script

Status
Not open for further replies.

kozlow

MIS
Mar 3, 2003
326
US
Is there any way to kick off from a script, other scripts so they all run in parallel? I am trying to split the work up and do not have to wait for script A to complete before Script B starts…..
 
inside the main script you can put something like
nohup ksh script2 > script2_log_file 2> script2_err_file &
nohup ksh script3 > script3_log_file 2> script3_err_file &
...
nohup ksh scriptx > scriptx_log_file 2> scriptx_err_file &

In this way all the scripts run in background and will run also when you close the connection
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top