[Gambas-user] Shell sudo

MinnesotaJon nicholso at ...2533...
Thu Jan 31 15:21:13 CET 2013


Thanks, Les -- I had this same problem, and you solved it for me.  For other
readers, here is the command adapted for Gambas3:

Shell "sudo -S chmod 0777 ~/myfilename << EOF\nmypassword\nEOF"   

Note:  "chmod 0777" is just an example of a chmod code

The newline code "\n" should NOT have spaces before it or after it.  If you
have excess spaces, this will be interpreted as part of the shell command,
and you'll get an error.



--
View this message in context: http://gambas.8142.n7.nabble.com/Shell-sudo-tp17654p40876.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list