Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2006 08:49:52 +0800
From:      "jan gestre" <>
To:        "" <>
Subject:   scripting question
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
i made a script and put on root's crontab, however it's not doing or showing
the output that is forwarded to my email address correctly therefore i'm not
sure if it is working or not. below is what the script look like:

# cvsrun - Weekly CVSup Run

echo "Subject: `hostname` weekly cvsup run"
/usr/local/bin/cvsup -g -L 2 /root/ports-supfile
echo ""
/usr/local/bin/portmanager -s | grep OLD
echo ""
echo "cvsrun done."


i would like the output of this command

/usr/local/bin/portmanager -s | grep OLD

to show in my mail where i forwarded it. below is the cronjob.

30 8 * * * root /usr/local/bin/cvsrun | mail -s "Daily cvsup run and
portmanager" user1

can someone help me to correct this script, to show the output that i want.


Want to link to this message? Use this URL: <>