LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 02:59 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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



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 03:34 PM
System hangs when when another computer in the network shutdowns jpbouza Linux - Networking 2 11-27-2009 06:00 AM
fedora 10 shutdowns automatically vinnie_vinodh Fedora 3 10-07-2009 09:15 AM
Computer shutdowns out of the blue alek66 Linux - Hardware 10 11-28-2006 06:33 AM
user that shutdowns the computer matevzp Linux - General 1 12-07-2004 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 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
Open Source Consulting | Domain Registration