On 13-Mar-2003/09:33 -0500, "Anthony E. Greene" <[EMAIL PROTECTED]> wrote:
>
>What about a cronjob that does this:
>
>olddirsum=`cat olddirsum`
>newdirsum=`ls --full-time /ftpdir | md5sum`
>if [ "$newdirsum" != "$olddirsum" ]; then
>  ls /dir | mail -s 'Updated FTP Directory' [EMAIL PROTECTED]
>  echo "$newdirsum" > olddirsum
>fi

This may nopt be a good idea to run every minute if the FTP server may
receive uploads that take more than 1 minute to complete. You might get a
notification every minute until the upload is complete.

Tony
-- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to