Script for folder emptiness?
Hey guys, I'm trying to write a script that will automatically move images onto a different folder.
I have noway of knowing when the images are available (they are uploaded via FTP whenever I need so there isn't a schedule). That's the reason why I have the script scheduled as an hourly cron. So once I upload the pictures (remotely) it moves them at the end of the hour (and I can access them via apache).
Now the problem I am having is with message logs. The upload folder is most of the time empty and the mv command will dumb a message on screen which in turns gets sent to root. I don't want any kind of logs of the transaction.
Tried to remove the mail option in the crontab w/o any success. Tried dumping the output to /dev/null
1$2>/dev/null
no luck either. I'm just not sure why it's even sending logs like this... and how to stop them (definitely not an otpion in the syslog either).
Any ideas?
Sam
|