Following Sarah and Ken advices, I run this script from Revolution 2.6 .1 application, and it works fine.
put "XXX" into tPassword put "YYY" into COMMAND1 put "pw="&tPassword & cr into tScript put "echo $pw | sudo -S" && COMMAND1 & cr after tScript get shell(tScript) I tryed the same script, in the same machine, from the CGI . Unfortunately I got this answer: WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information. To proceed, enter your password, or type Ctrl-C to abort. Password: Sorry, try again. Password: sudo: 1 incorrect password attempt How can I use Sudo commands from the CGI in MACOSX ? Thanks, Paolo Mazza ****************************************** Paolo Mazza NEOL SRL Società partecipata da Università di Padova via N. Tommaseo 84 35131 - Padova (Italy) Tel 049- 2050147 - Fax 049-7964386 www.neol.it _______________________________________________ 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
