[Gambas-user] Help with SHELL and EXEC

Doriano Blengino doriano.blengino at ...1909...
Sat Oct 11 08:47:58 CEST 2008


Kari Laine ha scritto:
> 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
>   
 From the man page of genisoimage:

       -path-list file
              A  file  containing  a  list  of pathspec directories and filenames to be
              added to the ISO9660 filesystem. This list  of  pathspecs  are  processed
	      ....

So, a shell command like:

	cd /var/spool/news; ls >filelist; genisoimage -o img.iso -path-list filelist

should do.

BTW - if it is a backup, how about to compress files before burning them?
A 'tar' command can also create multivolume archives, just in case...

Cheers,
Doriano






More information about the User mailing list