Cron Jobs

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

 



Hello,

Guys I need your help here.I am using RHL 7.3, Dialing up to my ISP who
assigns me a static IP on connection. I am supposed to send an ETRN to my
host server so I can get emails for my domain example.com. For this I wrote
a script which is supposed to send an ETRN and then send emails in the
mailq. My problem is I never seem to get it working in my crontab. Basically
I have a script written which is syncmail and a log file syncmail.log all in
/etc/ppp/*. My script looks like this :

#! /bin/bash
echo Starting the Mail Synchronisation "at: "`date` >> /etc/ppp/syncmail.log
/usr/sbin/sendmail -q
/etc/ppp/etrn -s hostserver.com &>/dev/null

and my cron looks like this:

10 06-18 * * 1-5 /etc/ppp/syncmail
10 06-18/3 * * 0,6 /etc/ppp/syncmail
10 02 * * * /etc/ppp/syncmail


What I want to happen is to be able to collect mail automatically without
having to push for mail manually, the cron is supposed to do that at least
hourly. Any suggestions.

thanx

Molla.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux