DragonFly BSD
DragonFly kernel List (threaded) for 2004-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Why doesn't this script work? (NOT DFly specific)


From: Jonathon McKitrick <jcm@xxxxxxxxxxxxxxxxx>
Date: Thu, 19 Feb 2004 23:19:54 +0000

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.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]