Say I have this process with PID = 1234 currently running.
I don't know how long it's gonna take for it to finish. Is it possible to schedule a cron tab to keep checking for the status of the proccess and shutdown the machines as soon as it sees that the process has finished?
I'm a fairly amateur shell-scripter, so I'm not sure where to start ....