crontab

From: madunix (madunix_at_gmail.com)
Date: 09/29/05


Date: 29 Sep 2005 06:52:37 -0700

I want to add the foolowing in a script to be run in crontab as root
can any one help to write the script.

0 22 * * * find /home/vpopmail/domains/sdc/thbk/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/uldc/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/zeic/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/aafi/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/aeiv/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/alfa/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/arin/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/exfb/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/indv/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/jery/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/jogb/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/jopp/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/mohd/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/pons/ -type f -mtime +20
-exec rm {} ";"
0 22 * * * find /home/vpopmail/domains/sdc/ship/ -type f -mtime +20
-exec rm {} ";"



Relevant Pages

  • IBM Informix Web DataBlade: Local root by design
    ... IBM Informix Web DataBlade: Local root by design ... Impact: Any user who can: 1) Save a Perl script anywhere on the server's ... admin right on any database can do it by loading the WDB module into ...
    (Bugtraq)
  • Re: Output to file lost when using cron
    ... > When executing as 'root' user it sends the output to the file ... If I have the script run from cron no output is generated. ... Did you change the crontab ...
    (comp.unix.aix)
  • RE: Linux hacked
    ... I would also suggest using a simple script in the future that alerts ... Subject: Linux hacked ... To get back into your account you want to use, at the boot manager ... boot normally and you should be able to login as root with your new ...
    (Security-Basics)
  • Re: system crontab
    ... I would like to daily run a certain script that cleans exim's queue from frozen messages: ... I have created a file called rm_frozen_msg.sh, gave it appropriate permissions and then installed it in my user crontab. ... Because it did not work I read the man and found out that I cannot run scripts as another (root) user. ... I deleted sudo from the file. ...
    (freebsd-questions)
  • Re: BSDstats v3.0 - The Security Rewrite
    ... The bsdstats script could easily pick up that entry and set ... a management machine, and that management machine only has ... Email is sent to root containing IDTOKEN= as generated by host, root forwards that to rpt@xxxxxxxxxxxx, rpt@xxxxxxxxxxxx sends back KEY= value ... second time, submits report values to root, root forwards that to rpt@xxxxxxxxxxxx ... ...
    (freebsd-questions)