Thread
:
Script to monitor a particular directory and send out e-mail....
View Single Post
#
2
(
permalink
)
02-11-2008, 03:01 PM
agn
Member
User
Join Date: Feb 2008
My distro: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Rep Power:
1
Code:
[ $(ls -1 | wc -l $dir) -gt 5 ] && echo "y" || echo "n"
That should give you a hint.
agn
View Public Profile
Send a private message to agn
Find all posts by agn