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
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
Summary: Also note that if you just have a few less than < and greater than > signs, it is often faster to just type "& l t ;" for less than and "& # 6 2 ;" for greater than into the confirm page. (without...
Summary: I'm trying to write a vbscript which would ping an address and popup a message box depending on the time value outputted by the ping command. For instance, if time is less than or equal to 20ms a mess...
Summary: Okay, I didn't see any difference at a glance in the code however that works. There is a different error that I am not sure if we can do anything about Type in Wayne<> for the name: Errors: > was ...