LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2013, 03:05 AM   #1
Cabroncito
LQ Newbie
 
Registered: Sep 2013
Posts: 18

Rep: Reputation: Disabled
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"?
 
Old 09-23-2013, 03:59 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,527

Rep: Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 19 random shutdowns mongrel2013 Fedora 2 07-23-2013 04:34 PM
System hangs when when another computer in the network shutdowns jpbouza Linux - Networking 2 11-27-2009 07:00 AM
fedora 10 shutdowns automatically vinnie_vinodh Fedora 3 10-07-2009 10:15 AM
Computer shutdowns out of the blue alek66 Linux - Hardware 10 11-28-2006 07:33 AM
user that shutdowns the computer matevzp Linux - General 1 12-07-2004 05:39 AM


All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration