On Thu, Feb 12, 2015 at 1:32 PM, Matt matt.mailingli...@gmail.com wrote:
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
#!/bin/sh
cd /var/list
sudo -u matt find /var/list -mmin +360 -empty -user matt -exec rm {}
On Thu, February 12, 2015 12:45 pm, Valeri Galtsev wrote:
On Thu, February 12, 2015 12:32 pm, Matt wrote:
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
#!/bin/sh
cd /var/list
sudo -u matt find /var/list -mmin
On Thu, Feb 12, 2015 at 1:32 PM, Matt matt.mailingli...@gmail.com wrote:
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
#!/bin/sh
cd /var/list
sudo -u matt find /var/list -mmin +360 -empty -user matt -exec rm {}
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
For what it's worth, we no longer have requiretty in the package in
Fedora, so eventually that change will probably make it down to CentOS.
Overall, security benefit
On Thu, Feb 12, 2015 at 12:32:12PM -0600, Matt wrote:
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
For what it's worth, we no longer have requiretty in the package in
Fedora, so eventually that change will probably
You can disable requiretty for one user also:
https://linuxreference.wordpress.com/2010/11/22/disable-requiretty-in-etcsudoers/
--
Eero
2015-02-12 20:32 GMT+02:00 Matt matt.mailingli...@gmail.com:
I need to remove empty files out of a directory that are over 6 hours
old so I created this
On Thu, February 12, 2015 12:32 pm, Matt wrote:
I need to remove empty files out of a directory that are over 6 hours
old so I created this script and put it in cron.hourly.
#!/bin/sh
cd /var/list
sudo -u matt find /var/list -mmin +360 -empty -user matt -exec rm {} \;
I want to run it as
7 matches
Mail list logo