Chris,

Could you create a single shell script that contains multiple commands and execute that?
i.e. create a file "commands.sh" that looks something like:

#!/bin/sh

chmod 755 $1
dosomethinghere
chmod 750 $1

And then execute the whole file once with:

do "do shell script" && quote & "commands.sh" & quote && "with administrator privileges"

Or do you have to run other things in between shell scripts?




I've got another question about using this. Hope you don't mind.

Is there anyway to suppress the dialog if it has already displayed once in a session? I realize there's a timeout thing with sudo that eventually expires (my Unix knowledge is limited), and at that point a new dialog would have to appear anyway.

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to