06-02-2006
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...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
how can it be that say i have text (xls) file that is 661 bytes when i upload it to Solaris ftp its becomes 650 byes
and when i downloading it back its again 661 bytes
both in my local pc and Solaris ftp the file remains not corrupted and valid (2 Replies)
Discussion started by: umen
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
We have the commands top and ps through which we can find out the size of the running process.
These commnds are giving the size of my process in MB after rounding of the size.
Is there any way by which I can get the size of my process in Bytes or KBytes.
Any help would be greatly... (2 Replies)
Discussion started by: darshi
2 Replies
3. Shell Programming and Scripting
i have a file new1.txt
i want to send the contents of that file as a message to email ali@sms.com
i m using ksh script.........
plz help me (5 Replies)
Discussion started by: ali560045
5 Replies
4. Shell Programming and Scripting
Hi all,
Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this?
Your help is greatly appreciated!!
Best Regards,
Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies
5. Shell Programming and Scripting
hi all
plz help in listing the files with size in bytes.
thnks
-Bali (4 Replies)
Discussion started by: balireddy_77
4 Replies
6. Shell Programming and Scripting
Hi
I need to find and delete 0-4 bytes size files in a folder.
How can I achieve that? (1 Reply)
Discussion started by: kapilk
1 Replies
7. Shell Programming and Scripting
While running script I am getting an error like
Few lines in data are not being processed.
After googling it I came to know that adding such line would give some memory to it
ini_set("memory_limit","64M");
my input file size is 1 GB.
Is that memory limit is based on RAM we have on... (1 Reply)
Discussion started by: elamurugu
1 Replies
8. Shell Programming and Scripting
Hi Experts,
I have a script like
$ORACLE_HOME/bin/sqlplus username/password # << ENDSQL
set pagesize 0 trim on feedback off verify off echo off newp none timing off
set serveroutput on
set heading off
spool Schemaerrtmp.txt
select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies
9. Shell Programming and Scripting
Hi All,
I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command .
We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies
LEARN ABOUT DEBIAN
ace::graphics::glyph::ex
Ace::Graphics::Glyph::ex(3pm) User Contributed Perl Documentation Ace::Graphics::Glyph::ex(3pm)
NAME
Ace::Graphics::Glyph::ex - The "X" glyph
SYNOPSIS
See L<Ace::Graphics::Panel> and L<Ace::Graphics::Glyph>.
DESCRIPTION
This glyph draws an "X".
OPTIONS
In addition to the common options, the following glyph-specific options are recognized:
Option Description Default
------ ----------- -------
-point Whether to draw an "X" the feature width
scaled width of the feature
or with arm length point.
BUGS
Please report them.
SEE ALSO
Ace::Sequence, Ace::Sequence::Feature, Ace::Graphics::Panel, Ace::Graphics::Track, Ace::Graphics::Glyph::anchored_arrow,
Ace::Graphics::Glyph::arrow, Ace::Graphics::Glyph::box, Ace::Graphics::Glyph::primers, Ace::Graphics::Glyph::segments,
Ace::Graphics::Glyph::toomany, Ace::Graphics::Glyph::transcript,
AUTHOR
Allen Day <day@cshl.org>.
Copyright (c) 2001 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for
disclaimers of warranty.
perl v5.14.2 2001-06-04 Ace::Graphics::Glyph::ex(3pm)