LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2004, 07:19 AM   #1
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Rep: Reputation: 15
start program on startup


I am running RED-HAT 7.0 and it doesn't run X !!!

I am interested in starting a "hello world" program on startup.
I tried to add a line in /etc/rc.d/rc.local at the end of the file
Code:
/root/hello
but when I reboot the program runs before the startup process ends and only when the "hello world" finishes I can see [root/localhost /root]#

Is there any other way to get my program start automatically write after [root/localhost /root]# ???

thanx - HTS.
 
Old 07-07-2004, 07:33 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,254

Rep: Reputation: 60
add it to the end of your /root/.bashrc
 
Old 07-08-2004, 01:22 AM   #3
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Original Poster
Rep: Reputation: 15
works great!

thanks a lot. That works great.
HTS
 
  


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
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
How Do I Get A Program to Start at the Machine Startup andy1.52 Linux - Software 1 03-03-2005 10:33 AM
getting a program to startup Cyric Slackware 4 10-23-2004 07:50 AM
how to make a program start on startup Maver Linux - Software 9 06-13-2004 06:54 PM
start a program at startup. abhay Slackware 3 10-14-2003 02:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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