Dec 30, 2002 #1 pdmd Technical User Joined Dec 30, 2002 Messages 1 Location 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 Joined Feb 7, 2003 Messages 27 Location US use /usr/bin/ksh instead. hope this helps. Upvote 0 Downvote
Feb 19, 2003 #3 bpinos Programmer Joined Feb 19, 2003 Messages 120 Location 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!