actually i have a file
#!/bin/ksh
echo " ************************************ " >> perst
echo " The following apps are running currently indicated by their number" >> perst
for i in Archiver1 Cleaner1 Archiver2 Interpolation DBMaint ImportAdapter_CC Extrapolation ZeroConsumptionReport DBSyncListener TnsProvAdapterCheckConfig
do
count=0
count=`ps -aef | grep java | grep $i | wc -l`
echo $i $count >> perst
ps -aef | grep java| grep $i >> /tmp/new1.txt
done
echo " ********************************************** " >> perst
mail -s "Plz find the attachment for the currently Running application"
naveed@cap.com < /tmp/new1.txt
Hi,
This Attachment contains the list of all the Applications Running Currently on
mdcaedn03.tu.com
Thanks
Ali Naveed
-------------------------------------------------------------------------can u tell me why i m not getting the content of file new1.txt in my mail