LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-20-2008, 12:05 PM   #1
BonScott73
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, 12:20 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,477

Rep: Reputation: 191Reputation: 191
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, 07:30 PM   #3
fbianconi
Member
 
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
 
  


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


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

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