Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-20-2008, 11:05 AM   #1
LQ Newbie
Registered: May 2008
Posts: 1

Rep: Reputation: 0
How to run a console program at startup

Hello, I need to run a program on a certain console at startup on a Red-hat.
I do not want a login shell in that console. Only the program running, and if the program hangs, it should restart.

I've been trying to do this changing the inittab file, but it does not work. Can anybody tell me how to do this?

Thanks in advance and sorry for my english.
Old 05-20-2008, 11:20 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,747

Rep: Reputation: 264Reputation: 264Reputation: 264
If the application doesn't need X, you can usually run the command from /etc/rc.d/rc.local. That's the last init script to run and is frequently used to run commands at the end of the init process.
Old 05-20-2008, 06:30 PM   #3
Registered: Apr 2008
Location: argentina
Distribution: Arch
Posts: 86

Rep: Reputation: 22
I think that what you need is to edit /etc/inittab I don't know how (to edit it), but maybe
'man init' can help you


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
Run program on startup thehendo Linux - Software 3 08-31-2006 05:07 AM
Run program before KDE startup carl.waldbieser Linux - Software 8 06-30-2006 08:15 PM
run program at startup.. me again.. :) rohan208 Linux - General 2 05-26-2004 08:03 PM
How to run a program on the console over telnet jhayes Linux - Software 4 04-07-2004 02:37 PM
make stuff run at startup (in a seperate console) Red Squirrel Linux - Newbie 7 03-04-2004 10:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 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