On 12/12/13 22:33, Allan Duncan wrote:
> I have a rc.local script that runs fine in csh, but I'd like to change
> it to sh, but I've had no success at it.
>
> #! /usr/bin/tcsh
> if `ping -w 1 -c 1 -n 192.168.1.3 | grep -o "1 packets"` == "1 packets"
> mount /nfs/bulk2

Thanks for the suggestions, I ended up with

#!/bin/sh
fping -t 50 -a 192.168.1.3 && mount /nfs/bulk2

_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to