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.
alc6379
Cookie... That's it
2,821 posts since Dec 2003
Reputation Points: 186
Solved Threads: 149
Skill Endorsements: 3