Re: crontab

From: noi (noi_at_siam.com)
Date: 09/29/05


Date: Thu, 29 Sep 2005 19:45:11 GMT

On Thu, 29 Sep 2005 06:52:37 -0700, madunix wrote this:

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

#!/bin/bash
# deleteSDC.sh
# deletes files modifed more than 20 days ago

find /home/vpopmail/domains/sdc -type f -mtime +20 -exec rm {} \;

# Or if you only want specific folders
# add a cd to sdc folder
cd /home/vpopmail/domains/sdc
# then findthbk
find thbk/ ffjtr/ -type f -mtime +20 -exec rm {} \;

# In root crontab
#
0 22 * * * sh /root/deleteSDC.sh



Relevant Pages

  • Re: RFC: Building the Perfect Tabbed Pane (an tutorial article)
    ... manipulation. ... that logic must reside in a script block ... head shouldn't be an issue as long as the script is after the closing ...
    (comp.lang.javascript)
  • Re: Javascript: string detection
    ... this script doesn' work, probably, because of the wrong syntax. ... A complete syntax check is better left to the server where existing code is more readily available and not a burden on the client. ... Be aware that even the regular expression above is restrictive as it won't accept literal IPv6 addresses, those that contain display names, or comments in some locations. ...
    (comp.lang.javascript)
  • Re: Grep and mv
    ... Or just the ones you have created with the script? ... > My silly little grep script extracts the names as ... > The error messages I get when running this script are: ...
    (comp.unix.shell)
  • Re: Need Help with my script logic
    ... Below is the complete script. ... the hidden inputs get populated after the following on the form: ... the other relevant fields are pretty much everything that takes data ...
    (comp.lang.javascript)
  • Re: Unix scripts
    ... operations at the beginning of the script while calling it after ... > If no file is given on the command line or all file lines were read, ... > The system calls echo and printf are frequently used for the file line ...
    (comp.unix.programmer)