The UNIX and Linux Forums  


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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
list the files with size in bytes balireddy_77 Shell Programming and Scripting 4 01-06-2009 01:17 PM
Remove first N bytes and last N bytes from a binary file on AIX. naveendronavall Shell Programming and Scripting 1 05-24-2008 12:06 PM
how to send contents of a file to email as a message ali560045 Shell Programming and Scripting 5 12-07-2007 08:53 AM
How to get the size of process in Bytes darshi UNIX for Dummies Questions & Answers 2 08-20-2007 09:22 AM
file size in bytes is different in ftp and local pc umen UNIX for Dummies Questions & Answers 2 06-04-2007 05:58 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-02-2006
poste_d_ordure poste_d_ordure is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 3
Email message if file size > 0 bytes

I want to create a script that emails a file created by Informix Ace if the file size is > 0. It is a list of exceptions. No exceptions...no message

This does not work:

THESIZE=`ls -lA /tmp/ds_treo.txt | awk -F' ' '{print $5}'`

if [ $THESIZE=0 ]
then
(cat $DSDIR/ds_treo.txt) | mail -s "Treo Daily Sales Report FS" jsayre@bebe.com
fi

What would?

I am a novice with this stuff...
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0