On Wednesday 03 August 2005 11:51, Samuel Olampi wrote:
> I don't know if someone has already posted this but
> I recently found that the mtx-changer script was
> failing on my Solaris 10 machines because of the
> seq command in line 45 not included in the Solaris 10
> base system.
> The workaround is quite easy and goes like this :
>
> wait_for_drive() {
> # for i in $(seq 180); do # Wait max 180 seconds
> i=0
> while [ $i -ne 180 ]; do
> i=`expr $i + 1`
> if mt -f $1 status | grep ONLINE >/dev/null 2>&1; then
> break
> fi
> # echo "Device $1 - not ready, retrying..."
> sleep 1
> done
> }
>
> Maybe it could be nice to include it in comment,
> like the one about BSD....
It seems to me that this was changed quite some time ago in the sense you
indicate. You might take a look at the one in the CVS to be sure so I can
get it right for the 1.38 release.
--
Best regards,
Kern
(">
/\
V_V
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users