
13 Dec
2013
13 Dec
'13
7:45 a.m.
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