Using Rev as a multiplatform GUI to control perl and shell scripts -- or is Tcl/tk better?

2003-10-01 Thread Ben Collyer
I want to make a multiplatform GUI for dozens of perl and shell scripts 
that process and analyse logs.

I had hoped to try to use Revolution, because I know some transcript, 
but wondered how you simply execute a perl script using Rev, (without 
passing any arguments etc. -- although this might eventually be useful).

I am running the scripts on MacOSX, from the bash shell.

a typical command line to execute a script might be

bash-2.05a$ perl desktop/logs/scripts/extract.pl

its a script that churns away for potentially hours, stripping and 
reformatting logfile lines, counting, etc

what transcript script do I need to launch the same script from a 
button in Rev?
And would the same transcript work on other platforms?

A friend said I should learn Tcl/Tk instead.. but is he right?

 opinions gratefully received

Ben
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using Rev as a multiplatform GUI to control perl and shell scripts -- or is Tcl/tk better?

2003-10-01 Thread Pierre Sahores
Hi Ben,

The best way is to pipe all the needed perl or any other kind of
scripting languages you would have to use. See, as an example, how i'm
accessing the psql command line client (PostgreSQL) and just tune the
script below by replacing my code by yours :

put psql -h localhost projecoles -U postgres into PgPath
put shell(echo  quote  select * from etablist order by
etab0011  quote  |  PgPath) into AccPpx

Bests, Pierre

Le mer 01/10/2003  17:16, Ben Collyer a crit :
 I want to make a multiplatform GUI for dozens of perl and shell scripts 
 that process and analyse logs.
 
 I had hoped to try to use Revolution, because I know some transcript, 
 but wondered how you simply execute a perl script using Rev, (without 
 passing any arguments etc. -- although this might eventually be useful).
 
 I am running the scripts on MacOSX, from the bash shell.
 
 a typical command line to execute a script might be
 
 bash-2.05a$ perl desktop/logs/scripts/extract.pl
 
 its a script that churns away for potentially hours, stripping and 
 reformatting logfile lines, counting, etc
 
 what transcript script do I need to launch the same script from a 
 button in Rev?
 And would the same transcript work on other platforms?
 
 A friend said I should learn Tcl/Tk instead.. but is he right?
 
   opinions gratefully received
 
 Ben
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
-- 
Bien cordialement, Pierre Sahores

100, rue de Paris
F - 77140 Nemours

GSM:   +33 6 03 95 77 70
Pro:   +33 1 41 60 52 68
Dom:   +33 1 64 45 05 33
Fax:   +33 1 64 45 05 33

Inspection acadmique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire delta de rentabilit
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using Rev as a multiplatform GUI to control perl and shell scripts -- or is Tcl/tk better?

2003-10-01 Thread Alex Rice
On Wednesday, October 1, 2003, at 09:16  AM, Ben Collyer wrote:

A friend said I should learn Tcl/Tk instead.. but is he right?

 opinions gratefully received
As Pierre mentioned- see the shell() function.

As for Tcl/Tk, I am not a tcl programmer, but I think that Revolution 
is going to have similar capabilities as Tcl/Tk - in that they are both 
high-level languages. Revolution is event-driven- I assume Tcl is also.

Revolution can compile relatively small, fast single-file executables 
for many platforms, which I don't think Tcl can do.

Tcl/Tk some versions are Free, but Revolution is not.

Tcl/Tk may not come with a GUI builder tool like Revolution offers.

Tk apps used to be glacially slow- click a button and go get a cup of 
coffee - kind of slow. I assume that is no longer an issue on today's 
hardware.

I would also compare Tcl/Tk's shell/task/process management functions 
and see if it's any better than Revolution's offerings.

Also keep an eye on this new site by David Bovill [EMAIL PROTECTED]
http://sourceforge.net/projects/opn-repository/
Open source environments which use Rev for rapid prototyping of fron 
ends, but which relate to other componenets written in othe languages.

HTH

Alex Rice [EMAIL PROTECTED] | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution