Add-on: [CS-FSLUG] Alarm for command-line processes?

listmail at rotundus.com listmail at rotundus.com
Sat May 8 15:38:23 CDT 2004


Just get rid of the tildes (~) and I think that you'll be OK.

David

Quoting Jukka Y <mail at ylonen.info>:

> Thanks for the script! I tried it but there was some error about
> "unrecognized
> character" - can you figure out what is wrong - maybe something with
> line-breaks?
>
> (error message)
>
> syntax error at ./convert line 10, near ")
> ~"
> Unrecognized character \xA0 at ./convert line 10.
>
> Jukka
>
> On Saturday 08 May 2004 15:32, Jonathan Rupp wrote:
> > Jukka,
> >
> > | Now you could also use the "find" command to run the script
> >
> > recoursively...
> >
> > Like this (perl script):
> >
> > #!/usr/bin/perl
> >
> > use strict;
> > use warnings;
> >
> > my $filelist = `find`;
> > my @files = split /\n/,$filelist;
> >
> > for my $file (@files)
> > ~    {
> > ~    next unless ($file =~ m#\.jpg$#);
> > ~    $file =~ s#\.[^/]*$##;
> > ~    system(<<EOF);
> > convert '$file.jpg' '$file.pnm' &&
> > rm '$file.jpg' &&
> > c44 '$file.pnm' '$file.djvu' &&
> > rm '$file.pnm'
> > EOF
> > ~    }
> >
> > That should process all jpgs in all subdirectories of the place where
> > you run the script.





More information about the Christiansource mailing list