Re: [Gambas-user] EXEC vs. SHELL

2009-06-16 Thread Mike Keehan
Hi Rolf,

EXEC will run a single executable program.
SHELL can run a shell script, including pipes and redirection between 
two or more executables.

You could think of EXEC as the fundamental way to run another program, 
while SHELL is shorthand for EXEC /bin/bash parameters

Mike.


Rolf-Werner Eilert wrote:
 Could someone explain me why there are two different ways of executing 
 shell commands and how they differ in practice? I mean, when do I want 
 EXEC and when will I want SHELL? What's the idea behind them?

 Thanks for all hints :-)

 Rolf


   



--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] redirecting stdout/console output to a textbox

2009-05-11 Thread Mike Keehan
Kevin,

Look up the SHELL command in the help browser - it takes parameters 
for Read|Write or Input|Output which can do what you want.

And look at the Console example program which uses the EXEC and 
captures output.

Mike.



Kevin Fishburne wrote:
 I'm using GAMBAS to control several daemons using the SHELL command, all
 of which output messages to the GAMBAS console. Is there a way to either
 grab the console output so that it can be placed in a textbox or similar
 control, or redirect it to such a control? I need the user to be able to
 see everything the daemons are doing via a form control representing an
 activity log.
 
 Kevin Fishburne 
 Eight Virtues 
 www:
 e-mail:
 phone: 
  http://sales.eightvirtues.com
  sa...@eightvirtues.com
  (770) 853-6271 
 
 --
 The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
 production scanning environment may not be a perfect world - but thanks to
 Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
 Series Scanner you'll get full speed at 300 dpi even with all image 
 processing features enabled. http://p.sf.net/sfu/kodak-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with gambas..

2009-03-27 Thread Mike Keehan
Carlos Humberto Llumiquinga Hidalgo wrote:
 Hi all
 
 I have a problem with a code on gambas..
 
 I'm trying.. this code.. EXEC [rm, application.Path  /imagenes/*.*]
 ... just I wanna erase the content of images folder.
 
 But I got an error.. on console... rm: can't erase
 «/home/carlosh/Prueba/imagenes/*.*»: File don't exists
 
 Help Please.. what's wrong.. 
 

Hi Carlos,

Try using SHELL instead of EXEC.  The *.* expression gets expanded by 
the Shell not by individual programs like rm.

Mike.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user