z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Delaying a command

z/OS UNIX System Services User's Guide
SA23-2279-00

If you want to delay a command from running until a previous background job has completed, you can use the wait command. You need to know the job identifier of the job you want to wait for; you can use the jobs command to get that.

Example: To have Time for tea display on your screen when the command whose job identifier is 7 finishes running, issue:
wait %7; print "Time for tea"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014