we've got various hpux boxes scattered around the country running anything
from 9.01 to 9.05, all of which have the"old" ksh, namely a 1988 version.
i'm new to hpux and a recent convert from csh, but some of the cron
scripts i've inherited seem to have a syntax problem. basically they say:
if [ $ROOM -lt 5000 ]
which generates a "test: argument expected" from cron when it runs the
scripts.
as near as i can tell from the "new" 1993 ksh spec the syntax should be:
if (( $ROOM < 5000 ))
but i'm not at all sure this would work on the hps w/the old ksh.
anybody have a clue on this, or better yet, some real live experience?
should i figure out the old syntax (which i suspect leaves out the square
brackets) and use that, or is it possible (albeit highly unlikely) that
our old ksh will correctly interpret the new ksh syntax. i'm looking for
a relatively long-term solution as the gov't isn't likely to upgrade a
whole bunch of hp boxes to 10.0 (which presumabley has the new ksh) -
money's pretty tight.
--
HEY!
- james brown