Roger, Good finding. I gave the same comment as before lol... it appears that this solution works, I haven't tested it.
Cheers andre On Fri, Nov 18, 2011 at 3:48 PM, Roger Eller <roger.e.el...@sealedair.com>wrote: > On Fri, Nov 18, 2011 at 12:26 PM, Andre Garzia wrote: > > > As far as I know, you can't ask for the user password and pass it to a > > shell call with clever use of pipes. That is not how sudo works, you > can't: > > > > cat password.txt | sudo cd .. or sudo cd .. < password.txt > > > > > How about this method? > > shell("pw=" & tPassword & "; echo $pw | sudo -S command") > > SOURCE: > http://www.mail-archive.com/use-revolution@lists.runrev.com/msg137100.html > > ~Roger > _______________________________________________ > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. _______________________________________________ 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