[Gambas-user] Help with SHELL and EXEC

M0E Lnx m0e.lnx at ...626...
Fri Oct 10 20:39:22 CEST 2008


How about just making a string of the files you want to put in the iso
and parse that string to the genisoimage

dim sArgs as string

SHELL "ls " & /path/to/your/files to sArgs

SHELL "cd " & /path/to/your/files " & "; genisoimage -o test.iso " &
trim(sArgs) wait

END



On Fri, Oct 10, 2008 at 12:46 PM, Ron <ron at ...1740...> wrote:
> Kari Laine schreef:
>> Thank you all for instructions. Key point is that I did not understand how
>> the OS-shell handles arguments.
>> I cannot pass all the arguments to shell because they outnumber the limit
>> which I think is something round 32000.
>> I am writing a backup program and /var/spool/news directory (leafnode) is
>> giving me problems. I will try to find alternate
>> solution to it, which is I think to pass directory paths instead file names
>> to genisoimage. To do that I have to calculate each possible directory path
>> for it's size. And only add it if the total image stays in CD or DVD limit.
>>
>> Thanks Again
>>
>> Best Regards
>> Kari Laine
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> Maybe you can write your command and args to a file from within your
> gambas program to create a script file and execute that script?
>
> Regards,
> Ron_2nd
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list