I have a script that I wrote to check the status of the NIC cards in the system. If I run by calling on the script manually it runs fine.
However, I'm getting the following error when the crontab runs it :
/appbin/maintenance/checknic: test: unknown operator ==
Here is the script:
PATH=/bin:/usr/local/bin:/appbin/maintenance
cestat=`kstat ce | grep link_up | cut -b34-34`
if [ $cestat == 1 ]
then
echo "ce0 UP" | mailx -s "ce0 UP" xxxx@xxxx.com
fi
- Stinney
Favorite all too common vendor responses: "We've never seen this issue before." AND "No one's ever wanted to use it like that before.
However, I'm getting the following error when the crontab runs it :
/appbin/maintenance/checknic: test: unknown operator ==
Here is the script:
PATH=/bin:/usr/local/bin:/appbin/maintenance
cestat=`kstat ce | grep link_up | cut -b34-34`
if [ $cestat == 1 ]
then
echo "ce0 UP" | mailx -s "ce0 UP" xxxx@xxxx.com
fi
- Stinney
Favorite all too common vendor responses: "We've never seen this issue before." AND "No one's ever wanted to use it like that before.