Shell Command Help
Sarah Reichelt
sarah.reichelt at gmail.com
Tue May 27 16:54:12 EDT 2008
On Wed, May 28, 2008 at 6:34 AM, RevList <RevList at createchsol.com> wrote:
> I am trying to write a GUI interface for an application that I run in
> Terminal.
>
> In Terminal, if I run
> /Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats
>
> I get the following returned
> 8.300 413.000 4.000 0.317 1.042 1366.000 100.000 129757.000 0.000
> 1497612288.000
>
>
> When I create a button with the following script in Rev
> On MouseUp
> put Shell("/Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats") into
> tShellCommand
> put Shell(tShellCommand) into tFilesList
> answer tFilesList
> End MouseUp
>
> I get this returned
> /bin/sh: line 1:8300: command not found
>
The first line is executing the shell command.
Then the second line is trying the execute the command:
Shell("/Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats")
which is a valid Rev command, but not a valid shell command.
Try this:
on MouseUp
put "/Users/slynch/Desktop/FCPUTIL_GUI/fcputil -S getstats" into tShellCommand
put Shell(tShellCommand) into tFilesList
answer tFilesList
end MouseUp
Cheers,
Sarah
More information about the use-livecode
mailing list