scripting question

Ivan Levchenko levchenko.i at gmail.com
Tue Oct 3 00:23:04 PDT 2006


(forgot to cc the list =))
Remove the word root from the crontab entry. The user should be
specified only in the system crontab.

On 10/3/06, jan gestre <freebsd.ph at gmail.com> wrote:
> 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.
>
> TIA
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


--
Best Regards,

Ivan Levchenko
levchenko.i at gmail.com


-- 
Best Regards,

Ivan Levchenko
levchenko.i at gmail.com


More information about the freebsd-questions mailing list