lc shell and command line

Mike Bonner bonnmike at gmail.com
Mon Nov 14 12:59:20 EST 2011


Don't forget you can open a script as a process for update and then send
whatever you need to it directly from livecode. I also seem to recall that
its possible to open a process with elevated privileges but I can't find
the info on that for some reason. If you can figure out that portion it
could save quite a bit of hassle. Open the script with elevated privs, user
is prompted for pword, voila'. I'll see if I can remember where the docs
are for elevated process opening stuffs.


On Mon, Nov 14, 2011 at 10:03 AM, Peter Alcibiades <
palcibiades-first at yahoo.co.uk> wrote:

> Thanks guys.  Yes, I know about sudo.  The idea was to get the user to put
> in
> the root password on each occasion, not to store it someplace which you're
> quite right of course would be very unwise.
>
> I think maybe livecode is not what I should be using for this, the right
> way
> is probably to have a shell script launched from a launcher on the desktop.
> Its a bit complicated because what is needed is to launch a first script
> which then calls a second one and executes as root.  My second problem with
> livecode was how to call the shell in such a way as to have the user enter
> the password and then carry on with the script.
>
> Its not quite so user friendly if it is all done in a terminal window, but
> it will work.
>
> Peter
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/lc-shell-and-command-line-tp4036681p4040142.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list