RE: create crontab

A.Fadyushin_at_it-centre.ru
Date: 08/31/05

  • Next message: Mark Farmer: "Re: create crontab"
    Date: Wed, 31 Aug 2005 16:30:43 +0400
    To: <redhat-list@redhat.com>
    
    

    You should run command 'crontab -e', if you want that commands to be
    executed with your access rights, or 'crontab -e -u <username>' if you
    want to execute then with access rights of some other user (you should
    be root to modify other user's crontab). Then, in the editor which will
    be run in reply to the command, add the following line to crontab:

    0 6 * * Sun <you_command_(find ...)_here>

    If you consider a day other than Sunday as end of week, change the name
    of day in the line above. If you need to execute more than one command
    at that time, repeat the line as necessary, changing the command.

    When you close the editor (saving your changes in the crontab, of
    course), the new, edited crontab will be automatically installed.

    Alexey Fadyushin.
    Brainbench MVP for Linux
    http://www.brainbench.com

    > -----Original Message-----
    > From: redhat-list-bounces@redhat.com [mailto:redhat-list-
    > bounces@redhat.com] On Behalf Of Mad Unix
    > Sent: Wednesday, August 31, 2005 10:32 AM
    > To: redhat-list@redhat.com
    > Subject: create crontab
    >
    > I have mail-hots serving 300 users pop3/imap through qmail
    > I manually remove old entries manually which older than 30 days
    > for each user
    > find /home/vpopmail/domains/sdcdom/user001/ -type f -mtime +30 -exec
    rm {}
    > ";"
    > find /home/vpopmail/domains/sdcdom/user002/ -type f -mtime +30 -exec
    rm {}
    > ";"
    > ...etc.
    > How can i add this entry into my crontab, to run at the end of the
    Week
    > at
    > 6 clock
    > in the morning.
    > am using Linux RHEL 3
    > Thanks
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=subscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list

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

  • Next message: Mark Farmer: "Re: create crontab"

    Relevant Pages

    • crontab issue
      ... I was editing the crontab and put the entry in the crontab: ... and the command would not execute. ... It executes fine from the command line, ...
      (AIX-L)
    • Re: Running DBI, ODBC in the crontab
      ... Run the following lines in both the command line and crontab: ... Any of the paths that are missing in cron ... This communication is issued by UBS AG or an affiliate by the ...
      (perl.dbi.users)
    • Inheriting proper env for crontab
      ... I can successfully execute a shell-script ... as cron job because sqlplus does not execute properly. ... and added the following line to crontab: ... the command sqlplus because sqlplus is not in its PATH. ...
      (comp.unix.shell)
    • Re: GPG in crontab causes blank messages
      ... When I run my crontab command manually in terminal, ... But since the output of the script contains a big list of files, ... If I remove the GPG portion of the command, ...
      (comp.sys.mac.apps)
    • Re: Inheriting proper env for crontab
      ... as cron job because sqlplus does not execute properly. ... and added the following line to crontab: ... the command sqlplus because sqlplus is not in its PATH. ...
      (comp.unix.shell)