Ubuntu Forums Archive Viewer

Run a sh file when ubuntu startup

Archived thread 1923138 from Tamil Team - India. Markdown source: Tamil_Team_-_India/thread_1923138_Run_a_sh_file_when_ubuntu_startup.md

Original URL About this archive
#1

Hi Friends, I need to run a sh file when the ubuntu 9.04 startup.Please help me how to do. Thanks.

#2

goto system/preferences/startup applicatoins click the add button and add your .sh script.

[IMG]http://lh6.ggpht.com/_FJH0hYZmVtc/Son1CMwQbhI/AAAAAAAACD0/r3F-Hwh5QsA/Ubuntu%209.04%20Jaunty%20Jackalope%20-%20Gnome%20-%20Startup%20Applications%20Preferences%5B4%5D.png[/IMG]

alternatively, you can add it to cron: https://help.ubuntu.com/community/CronHowto

ie,

crontab -e
@reboot /home/jayshomebrew/bin/mycoolscript.sh