Hello, Maybe sommethink like that,
cd /var/spool/news; tar cf - ./* | gzip -c > files.tar.gz ; echo "files.tar.gz" > filelist ; genisoimage -o img.iso -path-list filelist But if the name of the 'files.tar.gz' doesn't change, you can do it before this command one thing. Olivier. Le 11 oct. 08 à 08:47, Doriano Blengino a écrit : > 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@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 > > > > ------------------------------------------------------------------------- > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Olivier Cruilles Mail: [EMAIL PROTECTED] ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user