Tuesday, February 17, 2009

Monitoring the content of a directory

if you want to keep under control the content of a directory, here is a quick and dirty Unix script:

while :; do echo `date`; ls -ltr .ssh; sleep 1; done

you can achieve the same with watch date; ls -ltr .ssh

No comments: