Displaying 1 result from an estimated 1 matches for "1145531".
Did you mean:
114551
2015 Feb 12
7
Cronjob and sudo
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 matt rather than root for just an added bit of
safety. Problem is I get this.
"sudo: sorry, you must have a tty to run sudo"
Is there another