why doesn't this script work?
Jonathon McKitrick
jcm at FreeBSD-uk.eu.org
Wed Feb 18 15:25:48 PST 2004
I want to dial in and cvsup every night.
# check if ppp interface is up
rc=2
netstat -rn | grep -q tun
retval=$?
# if not, dial in
if [ $retval -eq 0 ]; then
echo Connecting...
ppp -ddial nerc
sleep 60
fi
echo Updating ports collection
/usr/local/bin/cvsup -g -L0 /home/jcm/.admin/ports-supfile
--------
I wake up to see cvsup waiting for a connection...
NOTE: Please CC me, as I am not currently subscribed. Thanks.
jm
--
My other computer is your windows box.
More information about the freebsd-questions
mailing list