![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|