LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   start program on startup (https://www.linuxquestions.org/questions/programming-9/start-program-on-startup-202098/)

HTS 07-07-2004 06:19 AM

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.

whansard 07-07-2004 06:33 AM

add it to the end of your /root/.bashrc

HTS 07-08-2004 12:22 AM

works great!
 
thanks a lot. That works great.
HTS


All times are GMT -5. The time now is 10:19 PM.