Why doesn't this script work? (NOT DFly specific)
Jonathon McKitrick
jcm at FreeBSD-uk.eu.org
Thu Feb 19 15:20:47 PST 2004
I tried FreeBSD-questions and a few forums, but no answers.
I have this script I want to cvsup every night via my ppp connection:
neptune:...etc/periodic/daily> pwd
/usr/local/etc/periodic/daily
neptune:...etc/periodic/daily> ll
total 8
drwxr-xr-x 3 root wheel 512 Feb 17 07:18 ./
drwxr-xr-x 4 root wheel 512 Feb 10 20:31 ../
-rwxr-xr-x 1 root wheel 739 Feb 17 07:18 000.cvsup-ports-stable*
drwxr-xr-x 2 root wheel 512 Feb 16 18:32 RCS/
neptune:...etc/periodic/daily>
Here is the beginning of the script:
#!/bin/sh
#
# Neptune cvsup update script for ports and stable
#
# 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
--------------------------------
But every morning, I find no entries in the logfile (for this script -
it logs to daily.log), no change in /usr/src, and cvsup is running and
waiting for the connection to come up.
Any ideas?
jm
--
My other computer is your Windows box.
More information about the Kernel
mailing list