Oh, now I understand. Wouldn't it be better to edit the sudoer file and modify the privilege for the named user to allow execution without password? (see man sudoers )

R.

On Tuesday, June 17, 2003, at 03:14 AM, [EMAIL PROTECTED] wrote:

Just a poor choice of variable name.

> get shell("echo '"&pwd&"' | sudo"&&cmd)

This won't actually put "pwd" in the shell command, it's a variable.

You'll still get something like:

> echo 'MyPassword' | sudo MyCommand

as the final shell command.


'pwd' puts the working directory ie the directory you are currently working in for operations like file listing. copying etc...







------------------------------
Brian Yennie
Chief Technology Officer
QLD Learning, LLC
www.QLDLearning.com

PH: (904)-997-0212
EMAIL: [EMAIL PROTECTED]
-------------------------------

--
Rodney Tamblyn
44 Melville Street
Dunedin
New Zealand
+64 3 4778606
http://rodney.weblogs.com/

_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to