PDA

View Full Version : [ubuntu] Script on Start Up.



jv2112
December 14th, 2009, 01:17 AM
I put together a script to update packages, delete downloaded packages, fixed orphaned packages and display disk usage. I want it to run on boot up but I am stuck. I tried adding to "Start Up applications" (System->Preferences->Start Up Applications) nut no luck.

It works fine running manually but I am at a loss to automate.

Any Ideas ? ](*,)

govt_cheese
December 14th, 2009, 01:32 AM
When you execute the command manually, do you have to use sudo?
If so, after adding the script to the start-up apps, setup the script to execute without password. Use the command:


visudo


Add a line for your username and the script:


username ALL=(ALL) NOPASSWD:/path/to/script

falconindy
December 14th, 2009, 03:42 AM
Just add it to /etc/rc.multi.