"shell xyz" in the background OS X
Mark Smith
lists at futilism.com
Wed Aug 20 06:25:17 EDT 2008
Klaus, you might also consider using "open process". This can be
useful (depending on the shell command you're using) because you can
then set up a non-blocking send in time loop to monitor progress and
get the output.
Best,
Mark
On 20 Aug 2008, at 10:53, Klaus Major wrote:
> Hi all,
>
> I just found this gem in the Rev docs:
> "Tip: The shell function blocks Revolution until it is completed.
> If you want to run a shell
> command in the background, write the shell script to a text file
> then execute it with the
> launch command."
>
> But cannot get it to work.
>
> What I did:
> 1. put the tempname & ".sh" into shell_file
> I think "sh" is the correct suffix, since the FInder show the
> "SHELL" icon for this file.
> 2. set the filetype to ""
> 3. wrote the correct shell command to url("file:" & shell_file)
> 4. Tried:
> launch shell_file ## seems to be the right syntax but see below...
> launch document shell_file
> and even:
> launch shell_file with "/usr/bin"
>
> No chance.
>
> Then I tried to execute the file directly in the terminal and got:
> Permission denied
>
> What can I do to get it to work in Rev?
>
> Thanks in advance!
>
>
> Best
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list