Well after a google search and a wee bit of tinkering, I've just figured out how to use opensh within a script, it's quite simple really. I'll edit this post with a link to a “how to” thread once I've made it. Here's a hint for now, you could use two scripts...... Here ya go - [How to] Use opensh within a script for root access