08-11-2004 05:43 AM
If it is greater than zero bytes .... I want to send and email to abc ..... if it is zero bytes I want to email def.
Here is the test I am doing and I am getting a "if: Badly formed number." error and the script halts.
Can anyone tell me where I am going wrong?
if (-s /directsm/errors.txt) then
elm -s EDI_ERROR firstname.lastname@example.org < /directsm/errors.txt
elm -s $SHIPPERFILE email@example.com < $TDFFILE
Solved! Go to Solution.
08-11-2004 05:48 AM
if [ -s /directsm/errors.txt ]
08-11-2004 06:16 AM
The "-s" is not a valid csh selection. You could use "-z" to test for zero instead.
if ( -z /directsm/errors.txt ) then
-- Rod Hills
08-11-2004 07:18 AM
I was getting very strange errors trying to use the -s with the c shell.
Can I ask you where you found out that the -s was not valid with the c shell?