PDA

View Full Version : how to configure fedora so that it executes a script whenever I login?



yinglcs
13th March 2007, 05:20 AM
How to configure fedora so that it executes a script whenever I login?

I can execute this script at command line:
I read somewhere which i need to log in as root and modify the '/etc/rc.sysinit'

but is there a way so that I just modify my . files?

lazlow
13th March 2007, 06:45 AM
I THINK the rc.sysinit may only work on bootup. What do you want (specifically) to do. There may be another way to do this.

Lazlow

yinglcs
13th March 2007, 06:54 AM
i solve my problem by adding my start up program (a server) in
~/.bash_profile

but my question is if I log out (no reboot) and log in, will that server starts twice? or that process will be killed automatically when i log out?

mrsmart
13th March 2007, 08:40 AM
i solve my problem by adding my start up program (a server) in
~/.bash_profile

but my question is if I log out (no reboot) and log in, will that server starts twice? or that process will be killed automatically when i log out?

Yes, it will start what ever you log on, and unless you configure your script, otherwise, it won't kill the previous process.