LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Simple question I think!? (https://www.linuxquestions.org/questions/linux-newbie-8/simple-question-i-think-32797/)

whaase 10-14-2002 04:28 PM

Simple question I think!?
 
How do I automaticly start a program when X starts up? Do I put in the run level 5 or does it go somewhere else?

Walter

trickykid 10-14-2002 04:45 PM

it would be in usually in your .xinitrc script you can add it to, in your user's home directory.

jhorvath 10-14-2002 04:52 PM

.xinitrc
 
programs execute in the order they are placed in .xinitrc...

if you mean to just start up a program and continue going on with your buisiness, you need to set it up so that the program runs in the background...

exec <prog_name> {args} &


without that '&' .xinitrc would stop until the program ended or was killed (whichever happened first) my example...i use fluxbox so..

exec wmcpuload &
exec wmclockmon &
exec wmppp &
exec fluxbox

.xinitrc will execute everything, and when i quit/kill fluxbox they would all DIE!

...or somethin like that

whaase 10-14-2002 05:06 PM

Thanks guys!

Walter


All times are GMT -5. The time now is 11:54 PM.