RunRev Command-Line mode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
RunRev Command-Line mode
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!
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
http://runrevwidgets.com/wiki
Re: RunRev Command-Line mode
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...![Smile :)](./images/smilies/icon_smile.gif)
Regards,
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...
![Smile :)](./images/smilies/icon_smile.gif)
Regards,
-
- VIP Livecode Opensource Backer
- Posts: 9867
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: RunRev Command-Line mode
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?
Is that what you tried?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
Re: RunRev Command-Line mode
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
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: RunRev Command-Line mode
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.
![Smile :-)](./images/smilies/icon_smile.gif)
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.
![Smile :-)](./images/smilies/icon_smile.gif)
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki
http://runrevwidgets.com/wiki
-
- VIP Livecode Opensource Backer
- Posts: 9867
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: RunRev Command-Line mode
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?
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: RunRev Command-Line mode
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!
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
http://runrevwidgets.com/wiki
-
- VIP Livecode Opensource Backer
- Posts: 9867
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: RunRev Command-Line mode
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?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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: RunRev Command-Line mode
Ok, thanks. I will a deeper check.
THank you for your support!
THank you for your support!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki
http://runrevwidgets.com/wiki
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
Re: RunRev Command-Line mode
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
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode