run script at logon
How do i run my script at after every logon on REDHAT ES 4. :confused:
|
Add it to your users .bash_login in their home directory.
|
Code:
ls /etc/rc.local |
Also consider /etc/bashrc & /etc/profile, they are system-wide, i.e. apply to all users. I think /etc/bashrc is preferable, check man bash for the (slightly subtle) differences between them.
If instead you really want something that runs at every boot after the init scripts, check out /etc/rc.local: Code:
ls /etc/rc.local |
If you use the system wide configuration you can write some code to fire off a script, program or command based on either user id or group id.
Example: Code:
if [ "$UID" = "1001" ]; then |
All times are GMT -5. The time now is 10:20 PM. |