Try, try again

Rodney Tamblyn rodney_tamblyn at yahoo.com
Mon Jun 16 07:56:01 EDT 2003


On Monday, June 16, 2003, at 07:31 AM, Yennie at aol.com wrote:

> If you don't mind the password being briefly sent in the clear (as 
> part of the name of the process), you can use this:
>
> get shell("echo '"&pwd&"' | sudo"&&cmd)
>
> Which comes out to something that looks like:
> echo 'MyPassword' | sudo MyCommand

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

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




More information about the metacard mailing list