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. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode