What's the difference between LC 'shell' and OSX terminal?

Mike Bonner bonnmike at gmail.com
Sat Oct 29 11:43:31 EDT 2011


Ah k yep. the double dash help is a pretty common unix'y thing, haven't used
IM to convert and no mac so couldn't test. Thx for clarifying!

On Sat, Oct 29, 2011 at 9:34 AM, Warren Samples <warren at warrensweb.us>wrote:

> On 10/29/2011 09:40 AM, Graham Samuel wrote:
>
>     shell(/opt/local/bin/convert)
>>
>
> Mike's response contains all the correct information, but it can be
> distilled to this:
>
> change what you what you type into the message box to:
>
> put shell("/opt/local/bin/convert"**)
>
> This should display in the message box whatever the terminal displays after
> you type "convert" in Terminal and press enter.
>
> The "put" is what will cause the output to be displayed. On my machine,
> issuing the convert command without any args returns the help. This is not
> uncommon behavior for cli programs.
>
> Also I note that while it is very common to require two hyphens before
> whole word args, 'convert' doesn't seem to use any single letter args and
> only responds to single hyphen (as compiled on my machine) args. This is
> from the help itself: "-help   print program options"
>
> Try:
>
> put shell("/opt/local/bin/convert -help")
>    ----works for me here, but if not for you, then:
>
> put shell("/opt/local/bin/convert --help")
>
> In an application you might prefer to use "get" in place of "put" before
> your shell().
>
> Best,
>
> Warren
>
>
>
>
>
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the Use-livecode mailing list