LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Possible to set up scheduled computer shutdowns in Fedora 19? (https://www.linuxquestions.org/questions/linux-newbie-8/possible-to-set-up-scheduled-computer-shutdowns-in-fedora-19-a-4175478159/)

Cabroncito 09-23-2013 02:05 AM

Possible to set up scheduled computer shutdowns in Fedora 19?
 
Is there a way to tell Linux, "Wait until this program finishes whatever it's doing, then shut down"?

pan64 09-23-2013 02:59 AM

you can check if that pid is still running and shutdown if not found.
You can implement something like this:
ps -p $PID || shutdown now
and run it in an endless loop.


All times are GMT -5. The time now is 01:06 AM.