[LUNI] What am I missing
Constantin Gavrilescu
costi at rcn.com
Tue Jan 30 20:51:47 CST 2007
Mike Scott wrote:
> Okay, so I have this script that runs a verify on a RAID array on a
> 3Ware card:
>
> zair:~ # cat /root/tw_verify.sh
> #!/bin/bash
>
> STATRES=`tw_cli /c0/u0 start verify`
> STATDATE=`date`
> echo "$STATDATE $STATRES"
> while true ; do
> STATRES=`tw_cli /c0/u0 show verifystatus`
> if echo "$STATRES"|grep "not verifying">/dev/nul ; then
> STATDATE=`date`
> echo "$STATDATE $STATRES"
> break;
> fi
> sleep 60
> done
>
> If I run it from the command line, I get:
>
> zair:~ # /root/tw_verify.sh
>
You don't have the same path in cron as in your root account. You can
either:
1. Use the absolute path in your script for "tw_cli"
2. Set the path in crontab. Normally, path is "/usr/bin:/bin". Put this
line in crontab:
PATH="/usr/bin:/bin:your_own_path_here"
--
A+ Computer Services Corp.
3717 N. Ravenswood Ave. Suite 237
http://www.apluscompuservices.com
More information about the luni
mailing list