How to set-up Revolution for faceless apps under WinXP

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Location: Böblingen, Germany
Contact:

How to set-up Revolution for faceless apps under WinXP

Post by rozek » Mon Aug 07, 2006 6:45 pm

Hello!

Assuming that CGIs and "faceless" Revolution applications are basically the same, I would like to know how to set-up Revolution (Studio) for faceless applications under WinXP.

I tried the "naive" way, using

<path-ot-revolution>\Revolution.exe <script-file-name>

but this command always starts the development environment.

What is the proper way to use Revolution for faceless apps?
Kind regards,

Andreas Rozek

oliverk
Site Admin
Site Admin
Posts: 53
Joined: Mon Feb 27, 2006 2:16 pm
Location: Edinburgh

Post by oliverk » Tue Oct 31, 2006 12:52 pm

Hi Andreas,

What is it that you want your application to do?

If you want the application to be run through the CGI, (eg the application is run when a url is opened in a browser) then you will need a Revolution CGI engine. There is not a CGI engine available for Windows Servers yet, but there are CGI engines available for web servers running on Unix and Mac OS X.

If you just want to write a command line application, then you can do this simply by creating a stack in Revolution for your program, and setting the visible of the stack to false before you save it. You can then handle the startup message, using $1, $2 etc to get to the command line parameters, and quit the application once done, without showing the gui. (You will need to save the stack as a standalone application).

Hope this is some help

Regards

Oliver
Oliver Kenyon
Software Developer
Runtime Revolution

marielle
Livecode Opensource Backer
Livecode Opensource Backer

great tip!

Post by marielle » Tue Oct 31, 2006 1:06 pm

Great tip! Thanks

rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Location: Böblingen, Germany
Contact:

Post by rozek » Thu Nov 30, 2006 7:26 pm

Hello Oliver!

Sorry for sending my reply so late - but I've been both busy and (then) on vacation for a while.

Indeed, my intention is to try building command line applications with Revolution (which might be overkill, but I just want to try that out).

Will "faceless" applications still work on all platforms supported by Revolution?

Anyway, thanks a lot for your help!
Kind regards,

Andreas Rozek

Post Reply

Return to “CGIs and the Server”