Page 1 of 1

RunRev Command-Line mode

Posted: Tue Dec 22, 2009 4:25 pm
by ale870
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!

Re: RunRev Command-Line mode

Posted: Tue Dec 22, 2009 5:11 pm
by ukimiku
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,

Re: RunRev Command-Line mode

Posted: Tue Dec 22, 2009 5:37 pm
by FourthWorld
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?

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 10:32 am
by BvG
Note that this only works with versions before 4.0.

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 10:47 am
by ale870
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.

:-)

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 2:05 pm
by FourthWorld
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?

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 2:17 pm
by ale870
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!

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 4:36 pm
by FourthWorld
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?

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 10:53 pm
by ale870
Ok, thanks. I will a deeper check.
THank you for your support!

Re: RunRev Command-Line mode

Posted: Wed Dec 23, 2009 11:11 pm
by BvG
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...