[Radiance-general] Bash problems
Dan Fitzpatrick
danf at eb7.co.uk
Wed Jul 22 11:25:15 PDT 2009
Hi Jack,
Many tanks for the response. You're right, I did miss the "pipe" before total in the second call. However, the -gt element still thinks I need to express an integer when in fact it should be exactly that.
Dan
From: radiance-general-bounces at radiance-online.org [mailto:radiance-general-bounces at radiance-online.org] On Behalf Of Jack de Valpine
Sent: 22 July 2009 19:17
To: Radiance general discussion
Subject: Re: [Radiance-general] Bash problems
Hi Dan,
It looks like you need a "|" in your second call to pextrem (before total). However since you have already calculated the value for maxim, why not just echo $maxim to 9.dat? Such as:
maxim=$(pextrem -o 9.pic | rcalc -e '$1=($3*0.265+$4*0.670+$5*0.065)*179' | total -u)
echo $maxim
if [ "$maxim" -gt 15000 ] ; then
echo $maxim > 9.dat
fi
done
-Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20090722/687af6fe/attachment-0001.html
More information about the Radiance-general
mailing list