[TriLUG] cp errror "Argument list too long"

Shane O'Donnell shaneodonnell at gmail.com
Tue Jul 26 10:31:47 EDT 2005


You can join multiple animated gifs into a single animated gif using 
Imagemagick's convert. I'm assuming the same thing would work with mpegs...

On 7/25/05, Michael Tharp <gxti at partiallystapled.com> wrote:
> 
> William Sutton wrote:
> 
> >Maybe it's time to switch to Perl :)
> >
> >#-----
> >my @file = map { chomp($_); $_; } `ls -1rt /path/to/files`;
> >
> >foreach my $file (@files)
> >{
> > next unless -f "/path/to/files/$file";
> >
> > `cp /path/to/file/$file /tmp/date`;
> > # your convert code here
> > # and, if you want, uncomment the next line
> > # unlink ("/path/to/files/$file");
> >}
> >
> >
> The problem here is that he's not converting multiple
> files ito multiple files, but rather multiple files into one
> file, so I'm not sure this approach will help any. Perhaps
> convert batches of as many files as will fit in one command
> line, then seam the files together?
> 
> Michael Tharp
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
> 



-- 
Shane O.
========
Shane O'Donnell
shaneodonnell at gmail.com
====================



More information about the TriLUG mailing list