Run script automatically
Friends ,
I am using Redhat Enterprise Linux 4 server . I have written a SCRIPT into my server . Now I want a situation , my "script" is running automatically when my pc is restarting . i.e.,How I can run my script automatically everytime when I reboot my pc . |
put something like this in your /etc/rc.local file
Code:
sh /path/to/your/script |
Another, fairly simple way is yo add a line to crontab
@reboot /your/file/to/run |
All times are GMT -5. The time now is 07:49 PM. |