Dec 30, 2002 #1 pdmd Technical User Dec 30, 2002 1 GB Why won't the following script run on a Sun operating system when it will on an IRIX64? #! /usr/bin/sh integer count=1 while (( count <= 9 )) do print "count is : $count" (( count +=1 )) done
Why won't the following script run on a Sun operating system when it will on an IRIX64? #! /usr/bin/sh integer count=1 while (( count <= 9 )) do print "count is : $count" (( count +=1 )) done
Feb 7, 2003 #2 crimso IS-IT--Management Feb 7, 2003 27 US use /usr/bin/ksh instead. hope this helps. Upvote 0 Downvote
Feb 19, 2003 #3 bpinos Programmer Feb 19, 2003 120 US Here is an example that will do exactly what you want in sh on a solaris box: #!/usr/bin/sh c="1" while [ $c -lt "9" ] do echo "count is : $c" c=`expr $c + 1` done exit I hope this helps! Upvote 0 Downvote
Here is an example that will do exactly what you want in sh on a solaris box: #!/usr/bin/sh c="1" while [ $c -lt "9" ] do echo "count is : $c" c=`expr $c + 1` done exit I hope this helps!