Running a program when a user logs on - Linux

This is a discussion on Running a program when a user logs on - Linux ; I want to be able to run a program on log-on, but just for a certain user.
Using runlevel 5. What is the easiest way to do this?
Don...

You can create a script in ~userlogin/.kde/Autostart to run anytime they start
kde desktop manager. You can call a script in ~userlogin/.bash_profile or you
can create a kludge in login files to see who is logging in and call
your script from there.

Just depends on what OS and which shell started by the user as to
where to place the script.

Re: Running a program when a user logs on

On Tue, 15 Mar 2005 17:37:47 -0600, Bit Twister wrote:
> You can create a script in ~userlogin/.kde/Autostart to run anytime they start
> kde desktop manager. You can call a script in ~userlogin/.bash_profile or you
> can create a kludge in login files to see who is logging in and call
> your script from there.
>
> Just depends on what OS and which shell started by the user as to
> where to place the script.

It's FC 3. Thanks for the information.

Don

Re: Running a program when a user logs on

~username/.bash_profile
always runs on login for a user

~username/.bashrc
runs whenever the bash shell is run

~userlogin/.kde/Autostart
runs when user logs with KDE as there desktop