pause for X amount of mins before next task
I am trying to get the code to make script to start some process when our server is booted but they can not be run all at onces, so does anyone know the shell code to hold the next command for X amount of mins before running it ?
Regards,
Garry
4 Replies
Regards,
Garry
at now + X mins jobname
With sleep:
sleep $(( mins * 60 )) ; jobname
After another process has finished:
wait otherpid ; jobname