[Gambas-user] EXEC TO

Jürgen Zdero juergen at ...1725...
Thu Jul 5 07:36:15 CEST 2007


May anybody confirm that the following example-code works with
gambas 1.0.18 or gambas2, please ?

Example:
   
' Get the contents of a directory into a string
DIM sOutput AS String
EXEC [ "ls", "-la", "/tmp" ] TO sOutput

I found this at http://www.gambasdoc.org/help/lang/exec
but it does not work for me.

Any hints how to do it without the process_read sub ?

regas Juergen




More information about the User mailing list