Computing.Net > Forums > Programming > if test for greater than value

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

if test for greater than value

Reply to Message Icon

Name: bayda01
Date: February 24, 2009 at 08:45:23 Pacific
OS: sun solaris
Subcategory: General
Comment:

I am trying to test if number of pages(in this case 50) is greater than 2 pages and getting error on test.
ifile=$1
ifile=/lrscommon/ede/bayman/sun/vpsxroot/spool/P305/00001080.dat

a=$3

a=50

b=$2

b=1080

d=2

d=2
if [$3 -gt $d];then
echo "routed to print shop"
echo "<!VPSX-REROUTE>PRINTSHOP"
echo "<!VPSX-ERRACTN>HOLD"
echo "<!VPSX-RETRY>NO"
echo "<!VPSX-DoNotPrint>"
exit 0
else
echo "file did not exceed output limit"
fi+ [50 -gt 2]
/lrscommon/ede/bayman/sun/output.script: [50: not found
+ echo file did not exceed output limit

file did not exceed output limit



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: if test for greater than value

greater than >>>> and &lt;&lt; les www.computing.net/answers/programming/greater-than-and-ampltamplt-les/5856.html

vbscript for ping www.computing.net/answers/programming/vbscript-for-ping/5820.html

Removing Special Characters FOR Loop www.computing.net/answers/programming/removing-special-characters-for-loop/18895.html