Ever thought about
sudo?
It will allow you to execute single commands as a user without having to drop into the shell of that user. You could even run
sudo, and point it to another shell script that contains all of the commands you need it to run, so you could make that script stay somewhat compact.
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
Offline 2,519 posts
since Dec 2003