Hi All
I have to send an email if the count of the folder does nt match with what expected.
#!/bin/ksh/
#Sends an email if the count of the files in a folder are less then expected
SrcDir=$1
Count=$2
cd $SrcDir | ls -l | wc -l -ne $Count && mutt -s "The count of $SrcDir is not equal to $Count" test@thehartford.com
This is not working. How can I do it in other way..
Thanks in advance
~
I have to send an email if the count of the folder does nt match with what expected.
#!/bin/ksh/
#Sends an email if the count of the files in a folder are less then expected
SrcDir=$1
Count=$2
cd $SrcDir | ls -l | wc -l -ne $Count && mutt -s "The count of $SrcDir is not equal to $Count" test@thehartford.com
This is not working. How can I do it in other way..
Thanks in advance
~