I'm assuming you've tried <br>for img in *.jpg; do<br>
nice gm convert -resize 160x160 $img thumbs/$img 2>&1 >> resize.log <br>
done<br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 9:46 PM, Matt Gushee <span dir="ltr"><<a href="mailto:matt@gushee.net">matt@gushee.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi folks--<br>
<br>
Here's something that's been bugging me for a long time: sometimes I will use a command-line program and try to redirect the output, e.g. to a log file, and it doesn't work. For example:<br>
<br>
for img in *.jpg; do<br>
nice gm convert -resize 160x160 $img thumbs/$img >> resize.log 2>&1<br>
done<br>
<br>
Nope. I get nothing in my log file. I've tried several variations of this command, including piping the output to tee. It just doesn't ever work. 'gm', by the way, is GraphicsMagick, a better-performing fork of ImageMagick. The same thing happened with ImageMagick, and IIRC with some other programs I've used on occasion.<br>
<br>
So what's going on here?<br><font color="#888888">
<br>
-- <br>
Matt Gushee<br>
_______________________________________________<br>
clue-tech mailing list<br>
<a href="mailto:clue-tech@cluedenver.org" target="_blank">clue-tech@cluedenver.org</a><br>
<a href="http://www.cluedenver.org/mailman/listinfo/clue-tech" target="_blank">http://www.cluedenver.org/mailman/listinfo/clue-tech</a><br>
</font></blockquote></div><br>