![]() |
| ||
| weird output I had a similar script in solaris and it had no problem. I wrote this one in freeBSD and it gave me strange output. Can anyone please tell me why? thanks a lot #!/bin/sh output:
|
| |||
| Re: weird output Hey there, I think definitely you'll see some differences in performance. Solaris' sh is the bourne shell and a lot of linux/bsd distro's just like sh to bash or another shell. The one thing I saw that jumped out at me was: if ["$daOslgCap" -gt "90%"] there may be 2 issues with this. Try padding spaces in between the [] and, possibly, check and see if there's an issue with the sense of your "if check", since "90%" is an alpha value and -gt is a unary comparison operator. to add the spaces: Quote:
Quote:
Quote:
Best wishes, Mike |
| All times are GMT -4. The time now is 8:21 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC