lc shell and command line

Peter Alcibiades palcibiades-first at yahoo.co.uk
Sat Nov 19 03:21:29 EST 2011


Roger Eller wrote:
> 
> How about this method?
> 
> shell("pw=" & tPassword & "; echo $pw | sudo -S command")
> 
> SOURCE:
> http://www.mail-archive.com/use-revolution@.runrev/msg137100.html
> 
> ~Roger
> 

Yes very neat, thanks.  My problem was a bit different but maybe this can be
used.  The real problem is that its a naive user in a remote location.  So
without going over, modifying the sudo file isn't a possibility.  A number
of lessons, one maybe being that remote maintenance would have been a
sensible thing to think about.  Save a lot of time and trouble.  Another
being, before you leave, make sure the full series of things the user wants
to do with the file has been tested.  In the present case the files are
being generated OK, but with root ownership....

Its because of a workaround to make a scanner work.  It does work, its just
the files it generates are owned by root....

--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/lc-shell-and-command-line-tp4036681p4085842.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list