Search Results

Search: Posts Made By: kiran1112
6,212
Posted By alister
It wasn't just the difference in line numbers;...
It wasn't just the difference in line numbers; your original post did not even include the source of the problem (the awk print statement). Until your most recent post, you had been wasting...
1,946
Posted By RavinderSingh13
Reply
Kindly try to use the following code.
#!/bin/ksh
typeset SERVER=$(hostname)
MAIL=kiran@test.com (MAIL=kiran@test.com)

set -A LOGDIR

LOGDIR[0]=/tmp/log1/
LOGDIR[1]=/tmp/log2

cd $LOGDIR...
1,946
Posted By balajesuri
#! /bin/bash for file in $(ls -rt | tail -2)...
#! /bin/bash

for file in $(ls -rt | tail -2)
do
if [ ! -s $file ]
then
echo " $file has size 0 ;-) " | mailx -s "This is subject" mailid@domain.com
fi
done
Showing results 1 to 3 of 3

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