Rev as Linux Shell Script
Mike Bonner
bonnmike at gmail.com
Thu Oct 28 11:30:21 EDT 2010
You can also leave off the -ui but then instead of a put you must write to
stdout. Worked last time I checked on 4.0, didn't test on 4.5 so don't know
if it will work there. Also, since you run without -ui you get a window
flash.
On the subject of revserver, Andre, you mentioned that liburl works with
that, but I have yet to get it to work in a revserver script. Has there
been an updated release of revserver that works wiht liburl, or do I just
have something broken on my end or.. ?
Suggestions welcome, because i'd love to have liburl available.
On Thu, Oct 28, 2010 at 9:23 AM, Peter W A Wood <peterwawood at gmail.com>wrote:
> Bill
>
> On 28 Oct 2010, at 22:39, Bill Andersen wrote:
>
> > I'm sorry this is so long winded. I'm hoping it will help you understand
> my motivation...
> >
> > ... snip ....
> >
> >
> > I've read how to get the runtime working as a CGI and played around
> enough that I 'can' (seemingly) make it work from a shell with the
> "#!revolution -ui" declaration on the first line. However, when I get to
> some of the higher level features (FTP, ODBC, etc) I start getting errors.
> I was researching how to possibly resolve these issues (need libraries,
> etc) when I found that Rev 3.5 is the last version to support the ability to
> run as a CGI.
>
>
> I also am keen to use LiveCode to write "shell" programs and believe that
> it is possible by adopting a slightly different approach. I believe that if
> you build a "standalone" of your script, you can run the 'standalone"
> program with the -ui argument.
>
> I performed a small test under Revolution 4.0. I created a new stack and
> added the following handler to the stack:
>
> on startup
> put "Hello Console"
> quit
> end startup
>
> I created a standalone and then ran the executable from a shell console
> using the -ui option :
>
> Rodney:MacOS peter$ ./CLTest -ui
> Hello Console
> Rodney:MacOS peter$
>
> It's not much of a test but it did work. I would expect the technique to
> work just as well under Linux.
>
> It would be even better if there was an option to build a GUI-less program
> when building a standalone in LiveCode though.
>
> Regards
>
> Peter
>
>
> _______________________________________________
> 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