Cron jobs setup

Joseph E. Maxwell jemaxwell at jaymax.com
Tue Dec 28 11:57:37 PST 2004


Thanks, timing corrections made - but the MAILTO "the other user", still 
up in the air - any ideas on this?

John Brooks wrote:

>you probably already know this, but just in case...
>
>the command to edit a crontab is:
>
>  crontab -u whoser -e
>
>(assuming that your user is named "whoser")
>
>--
>John Brooks
>john at day-light.com 
>
>  
>
>>-----Original Message-----
>>From: owner-freebsd-database at freebsd.org
>>[mailto:owner-freebsd-database at freebsd.org]On Behalf Of Andy Harrison
>>Sent: Tuesday, December 28, 2004 8:08 AM
>>To: Joseph E. Maxwell
>>Cc: freebsd-database at freebsd.org
>>Subject: Re: Cron jobs setup
>>
>>
>>On Fri, 24 Dec 2004 22:12:09 -0800, Joseph E. Maxwell
>><jemaxwell at jaymax.com> wrote:
>>    
>>
>>>I am setting up a cron job to run a shell script at 1 hr 
>>>      
>>>
>>interval and to
>>    
>>
>>>have the output of the script sent to a user. I have this 
>>>      
>>>
>>in the cron
>>    
>>
>>>file inserted by crontab
>>>
>>>    cat /var/cron/tabs/whoser
>>>
>>>        # DO NOT EDIT THIS FILE - edit the master and reinstall.
>>>        # (cron_reg installed on Fri Dec 24 18:13:01 2004)
>>>        # (Cron version -- $FreeBSD:
>>>        src/usr.sbin/cron/crontab/crontab.c,v 1.12.2.4 2001/06/16
>>>        03:18:37 peter Exp $)
>>>        0       1       *       *       *
>>>        
>>>      
>>>
>>/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah/pam2deb.shl
>>    
>>
>>>        MAILTO=user
>>>      
>>>
>>Reread the crontab manpage.  0 1 * * * doesn't mean once per hour, it
>>means that it will run every day at 1AM.  If you want once per hour, I
>>believe you can do */60 * * * *
>>
>>-- 
>>Andy Harrison
>>_______________________________________________
>>freebsd-database at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-database
>>To unsubscribe, send any mail to 
>>"freebsd-database-unsubscribe at freebsd.org"
>>    
>>
>
>
>  
>


More information about the freebsd-database mailing list