The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
write the script to get the file size and sends an email
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
write the script to get the file size and sends an email
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
08-12-2008
vidyadhar85
Moderator(The Tutor)
Join Date: Jun 2008
Location: INDIA
Posts: 1,418
try this....
ls -lrt|awk '$5 > 10485760 {print}' > ./big.txt
if [[ -s ./big.txt ]] ; then
/usr/bin/mailx -s 'file too big '
abc@xyz.com
< big.txt
Last edited by vidyadhar85; 08-12-2008 at
11:01 PM
..
vidyadhar85
View Public Profile
Find all posts by vidyadhar85
Find vidyadhar85's past nominations received
Find vidyadhar85's present nominations given