The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 08-12-2008
s_linux s_linux is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 81
Thanks for your reply.

I just tried with the script which you give me and it did work with some changes. I modified the script like below

find -name core.* -size +10485760c > ./big.txt
#if [[ -s ./big.txt ]] ; then
#big.txt > /usr/bin/mailx -s 'file too big ' abc@xyz.com

this works but I want to see file size too like this..
-rw------- 1 root root 254517248 Aug 4 21:36 core.2909 and this line i wanna send as a mail.

when I tried with this...

/bin/find /path/tofile -name filename.whatever -size +10485760c > ./big.dat It says couldn't find the /bin/find.

Thanks for your help.