[Gambas-user] Help with SHELL and EXEC
Ron_1st
ronstk at ...239...
Fri Oct 10 16:35:54 CEST 2008
On Friday 10 October 2008, Kari Laine wrote:
> On Fri, Oct 10, 2008 at 2:09 PM, Benoit Minisini <
> gambas at ...1...> wrote:
>
> > On vendredi 10 octobre 2008, Kari Laine wrote:
> >
> > Did you look at the "Console" example?
> >
> > Hi, thanks had a look it at now.
>
> I am trying to use genisoimage. Problem I think is that it exists straight
> away after shell is executed so that it is not round when I try to write
> (print) to process handle.
> What I would need in my program is that I start genisoimage to output
> certain iso-file image and then I write the file names to it's standard
> input. This is what I dont't get working.
>
> I really don't know what the problem is.
>
> on command line this works
>
> ls |xargs genisoimage -o testi.iso
>
This is a more ore less multi 'commands' line.
You should use the whole line in one command.
DIM myProc AS Process
myProc = SHELL "(ls | xargs genisoimage -o testi.iso )" FOR WRITE
the parenthesis groups the command to one main block
See man bash command grouping.
Best regards
Ron_1st
More information about the User
mailing list