RunRev Command-Line mode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

RunRev Command-Line mode

Post by ale870 » Tue Dec 22, 2009 4:25 pm

Hello,

since RevTalk is a great language, I wanted to use it even to create small command-line programs. Is it possible?
I tried to create a script via editor, then save as "test.rev" and running it using "revolution.exe -ui" (like CGI), but nothing happen.
Can you tell me a way to user RunRev as command-line tool (similar to other scripting languages like python, php, newlisp, etc...)?

Thank you for your support!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Re: RunRev Command-Line mode

Post by ukimiku » Tue Dec 22, 2009 5:11 pm

Hi Ale870,

I don't know the answer to your problem, but would be interested to know a way, too.
When I started learning RunRev, I read in the forum somewhere that you can even program a faceless app with RunRev, provided you know how... :)

Regards,

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9867
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: RunRev Command-Line mode

Post by FourthWorld » Tue Dec 22, 2009 5:37 pm

My understanding is that you can pass to the engine the path of a text file when running with "-ui" and it will use the startup handler there as it does on a server. As with the CGI, that startup handler in the text file can call other handlers there, and can even use stack libraries invoked with "start using" to leverage existing assets and provide protection for your scripts.

Is that what you tried?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: RunRev Command-Line mode

Post by BvG » Wed Dec 23, 2009 10:32 am

Note that this only works with versions before 4.0.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: RunRev Command-Line mode

Post by ale870 » Wed Dec 23, 2009 10:47 am

Yes, that's my problem. I even tried with "standalone" executable, but it seems RR4 cannot execute any more pure command-line commands.
I think this is a big issue: in fact I have a great language but I cannot use it to make a trivial console based "Hello world!" text, like I do in any other scripting language (python, php, ruby, newLisp, etc...).

I'm very disappointed about this.

:-)
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9867
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: RunRev Command-Line mode

Post by FourthWorld » Wed Dec 23, 2009 2:05 pm

Ah yes, the v4 Engine Change Log clarifies that the v4 runtime engine is not usable in command-line mode.

Kevin has stated his intention to deliver a free v4 CGI engine as has always been the case, but given the complexity of the RevWeb plugin I can understand the delay.

Here I've been using v3.5 for my CGIs, and given that most of the new features in v4 don't come into play in a faceless mode I would imagine the v3.5 runtime engine would be useful for your command line-driven project, no?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: RunRev Command-Line mode

Post by ale870 » Wed Dec 23, 2009 2:17 pm

Generally speaking, and not related only to CGI, I think RevTalk is a great language and a command-line version (console based) should be definitively a great improvement, a wonderful tool. Imagine for Linux guys: command-line in Linux a wonderful resource (I'm a Linux and Windows user) to make specific commands/programs.
I really hope that next RunRev version can supply a commandline version (I want to write my shell scripts in RunRev!).

Thank you for your support!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9867
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: RunRev Command-Line mode

Post by FourthWorld » Wed Dec 23, 2009 4:36 pm

ale870 wrote:Generally speaking, and not related only to CGI, I think RevTalk is a great language and a command-line version (console based) should be definitively a great improvement, a wonderful tool.
It's already available, it just has a different version number than the current shipping IDE. Since v4's main language enhancements deal with image effects which won't be usable in a faceless mode anyway, I would imagine the v3.5 runtime engine would cover your needs, no?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: RunRev Command-Line mode

Post by ale870 » Wed Dec 23, 2009 10:53 pm

Ok, thanks. I will a deeper check.
THank you for your support!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: RunRev Command-Line mode

Post by BvG » Wed Dec 23, 2009 11:11 pm

actually, there's at least one very important change in 4.0 for faceless apps, namely the sqlite driver update. The old one was rather bad...
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”