Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-23-2005, 07:14 AM   #1
LQ Newbie
Registered: Feb 2005
Distribution: Slackware current
Posts: 2

Rep: Reputation: 0
How to shutdown after a specific program is closed

I need to do the following:

When my computer boots it automatically logs on to Fluxbox and starts Firefox. That much I know about the init files but how do I make the computer shutdown after Firefox is closed? Any help will be highly appreciated since the machine is going to people with very little knowledge about computers.
Old 02-23-2005, 07:18 AM   #2
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
What runlevel you boot into?
If you start fluxbox via script, you could do the following:
./fluxbox && shutdown -now

The other solution is to shutdown via a cmd in xterm when the fluxbox is up.

Last edited by ivanatora; 02-23-2005 at 07:20 AM.
Old 02-23-2005, 09:03 AM   #3
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
In case you're interested, I wrote a little script that comes very handy in such situations:
It is called


Last edited by theYinYeti; 02-23-2005 at 09:04 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
run program automatically at specific time simon_qwl Programming 2 03-20-2005 10:58 AM
Running a program for a specific period of time CaptainHowdy Linux - Software 2 08-22-2004 07:02 PM
how do i remove a specific program? Blu-star Linux - Software 4 01-04-2004 09:00 PM
Need program to find specific IP's from a list cjdock Programming 20 12-17-2003 09:08 AM
Running program when terminal closed? mikeshn Linux - General 9 11-23-2002 08:00 PM

All times are GMT -5. The time now is 05:29 PM.

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