Here's what I'm trying to do (Jaunty server edition):
I would like to be able to start/stop one program from another. Specifically, I have installed Asterisk that runs as non-root user asterisk. I would like Asterisk (the program) to be able to launch a bash script with the following:
Motion is another program installed, running as non-root user motion.
sudo /etc/init.d/motion start
What is the best way to accomplish this? I don't want to hard-code any passwords into the script.