Add-on: [CS-FSLUG] Alarm for command-line processes?
Jukka Y
mail at ylonen.info
Sat May 8 08:21:35 CDT 2004
Hi! Doesn't "mogrify -format pnm *.jpg" convert all jpg's at the current
directory to pnm. It is fine, but then conversion takes a lot of space (pnm's
are almost 7-times bigger than jpg's). I think that in order to keep
conversion "small", I need a script to processes files one by one.
Blessings,
Jukka
( http://www.jewsforjesus.org/mm/lww/albums/
times_and_seasons/09_perfectpeace.mp3 )
On Saturday 08 May 2004 15:47, john-thomas richards wrote:
> On Sat, May 08, 2004 at 10:14:47AM +0300, Jukka Y wrote:
> > This is the script that I use. Is there something (that I could add into
> > it) to get "alarm" after it finishes:
> >
> > (script is in single line)
> > for i in *jpg;do export i=`echo $i|perl -e '<> =~ /^(.+)\./; print "$1
> > \n";'`;echo "converting $i"; convert $i.jpg $i.pnm; rm $i.jpg; c44 $i.pnm
> > $i.djvu; rm $i.pnm ; done
>
> perhaps imagemagick would help simplify the conversion process:
>
> mogrify -format pnm *.jpg
>
> http://jrichards.org/blog/article/13
>
> [snip]
More information about the Christiansource
mailing list