No volumes in Linux?

Ken Ray kray at sonsothunder.com
Fri Sep 9 17:05:26 EDT 2005


> Ken Ray's proposal:
> 
> Bob, here's how I do it with OSX's shell; perhaps this will work with Linux
> as well (in this case I'm executing a 'kill' on a process with sudo):
> 
>     put "#!/bin/sh" & cr into tScript
>     put "pw="&tPassword & cr into tScript
>     put "echo $pw | sudo -S kill -9" && tProcessID & cr after tScript
>     get shell(tScript)
> 
> Substituting an actual string for "tPassword" is OK, but to see whether this
> might work under Linux I need to know what to put in place of "tProcessID".
> Wossis?
> Sorry about the ignorance factor on my part........

No problem... I was just giving you an example of how to pass authentication
via shell using an example I had of killing a process. You're not killing a
process, so everything that comes after "sudo" needs to be your own command,
so you'd do:

  echo $pw | sudo sfdisk -s

But you already have a workable solution, so this is just FYI...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list