Unix scripting help
Gordon Tillman
got at mindspring.com
Thu Sep 29 12:38:53 EDT 2005
Howdy Chris,
On Sep 29, 2005, at 11:14, Chris Sheffield wrote:
> I can't get this to go through for some reason. So here it is again.
>
>
> I hope I'm not totally off topic here.
>
> I've got an installer in Rev that has to start a process under OS X
> using the shell function. I'm able to get the process to start
> just fine using a command line script. But the problem I'm having
> is this particular process does not return any value when started,
> and the shell command is not exiting because of this (at least
> that's what I assume is happening). So my script just kind of
> hangs at that point. The process I'm starting is the Valentina
> database server.
>
> So what I'm looking for is a way to run my script, which starts the
> process, but include in my script something that says, "Okay, I'm
> finished now", and will allow my handler to go on at that point.
> This is the current script I'm running with the shell function:
>
> #!/bin/sh
> pw=[PasswordHere] -- this is obtained earlier with an
> authentication dialog
> echo $pw | sudo -S /Library/RNSEServer/RNSEServer &
> exit
What if you replaced this line as follows:
echo $pw | sudo -S /usr/bin/nohup /Library/RNSEServer/RNSEServer &
--gordy
More information about the use-livecode
mailing list