"shell xyz" in the background OS X

Klaus Major klaus at major-k.de
Wed Aug 20 05:53:51 EDT 2008

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!


Klaus Major
klaus at major-k.de

More information about the use-livecode mailing list