[clue-tech] Error messages that can't be redirected

Silas Martinez silasm at gmail.com
Fri Nov 6 21:50:39 MST 2009


I'm assuming you've tried
for img in *.jpg; do
   nice gm convert -resize 160x160 $img thumbs/$img 2>&1 >> resize.log
done

On Fri, Nov 6, 2009 at 9:46 PM, Matt Gushee <matt at gushee.net> wrote:

> Hi folks--
>
> 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:
>
>  for img in *.jpg; do
>    nice gm convert -resize 160x160 $img thumbs/$img >> resize.log 2>&1
>  done
>
> 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.
>
> So what's going on here?
>
> --
> Matt Gushee
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://www.cluedenver.org/mailman/listinfo/clue-tech
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue-tech/attachments/20091106/558c4df3/attachment.html


More information about the clue-tech mailing list