On 10.04 Lucid, how can I add a script to run at startup as another user?
Will I add a script someplace like /etc/init.d/myscript
? Or is it better to put it in the cron file for root as @reboot
and the exec
command? Or something completely different?
I'm new to this (sorry) but I have been googling without much luck. Links to tutorials would be fine as well, I'm just feeling a little lost not knowing where to start...
Take a look at this question on StackOverflow. It suggests something like this -
That way you just put the script to run at startup under Startup Applications (System -> Preferences-> Startup Applications) and it'll run on startup