Re: crontab
From: noi (noi_at_siam.com)
Date: 09/29/05
- Next message: riggs_at_ksmerchandise.com: "Re: terminal emulation"
- Previous message: Dino Buljubasic: "Question"
- In reply to: madunix: "crontab"
- Next in thread: Brian Brunner: "Re: crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: riggs_at_ksmerchandise.com: "Re: terminal emulation"
- Previous message: Dino Buljubasic: "Question"
- In reply to: madunix: "crontab"
- Next in thread: Brian Brunner: "Re: crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|