[Gambas-user] Hours of strugglin with EXEC and SHELL (Solved -sort of)

Ron Onstenk ronstk at ...239...
Fri Jan 25 08:36:21 CET 2008


On Friday 25 January 2008 04:13, richard terry wrote:
> 2008-01-25 04:13
>    
> Probably not the way one should do it but RTFM came in handy again:
> 
> At the end of the day I re-read the zip command again and realised I can add a
>  "-d /dir_where_I_want_to_put_my_files" to the end of the command and this 
> works ok, so I'll continue down my odyssey.
> 
> Regards
> 
> Richard
> 

That is the easy way.
Every SHELL command runs in a fresh shell.
If you need all commands to run in a defenied directory you need
to prefix all those commandd with the CD <directory>; as in: 

> > SHELL "cd  /home/richard/coding; ls -al" WAIT

i.e. SHELL "cd " & executepath & "; " & your_final_command" WAIT

Ron




More information about the User mailing list