Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2004 23:25:42 +0000
From:      Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
To:        freebsd-questions@freebsd.org
Subject:   why doesn't this script work?
Message-ID:  <20040218232542.GA49834@dogma.freebsd-uk.eu.org>

next in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040218232542.GA49834>