Search Results

Search: Posts Made By: poste_d_ordure
12,544
Posted By poste_d_ordure
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...
6,097
Posted By poste_d_ordure
File length
I need to be able to get the length of a specific file. If the file length <> 0, then I need to email it to an address.

I tried this:

if [`wc -c "$DSDIR/non_reporting_stores.txt"` -ne 0]
then...
53,807
Posted By poste_d_ordure
I just need the size of one file
I tried manipulating the code and got an error that -c was not a valid option. When I tried the valid options, I got a rather complete list of stats, not just a numeric value for file size
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy