LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Autostarting a program upon login... (http://www.linuxquestions.org/questions/linux-general-1/autostarting-a-program-upon-login-13733/)

Thymox 02-07-2002 09:01 AM

Autostarting a program upon login...
 
Mandy SNF, by default, creates 3 users:
root
admin
normal-user.

Root does what you'd expect.
normal-user is likewise (just a normal user).
Admin, however, has some priveledges above normal, but less than root. The most interesting thing I've found, though, is that upon login (either at the computer, or over ssh), a config program starts.

What file needs to be edited to autostart a certain program upon login?

Cheers muchly.

DavidPhillips 02-07-2002 09:05 AM

for it to happen on login it would be the ~/.bashrc

is that what you mean

Thymox 02-07-2002 09:06 AM

Yep. What should I add?

exec someprogram

?

DavidPhillips 02-07-2002 11:05 AM

yep


but remember entering it like that will start it everytime you login, so if you open an xterm it will start again.


unless you put a script to check and see if it's already running


if it's an x program you could put it in the .xsession script so it only starts when you login to X



All times are GMT -5. The time now is 04:36 PM.