Hi,
I have been trying to send a mail from a remote site using this script
To send the mail:
#!/bin/ksh
MAILTO="
abc@xyz.com"
BACKUPDIR="/wls_domains/wli81_1/RHTEAM/OUTPUTBACKUP/"
#BACKUPDIR="../OUTPUTBACKUP/"
while [ $# -ge 1 ]; do
print $1
uuencode $1 $1 | mail $MAILTO
print "Mail sent with $1 attached"
cp $1 $BACKUPDIR
rm $1
shift
done
To get one attachment per mail:
#!/bin/ksh
OUTPUTDIR="/wls_domains/wli81_1/RHTEAM/OUTPUT"
#OUTPUTDIR="../OUTPUT"
cd $OUTPUTDIR
while [ 1 ]; do
ls *.CSV | xargs "/wls_domains/wli81_1/RHTEAM/Script/sendMailAttach.ksh"
sleep 300
done
The main script:
#!/bin/ksh
./mailCSV.ksh &
There is no error being prompted and neither the mail is being delivered. Could anyone help me with this? I am not able to get the error in any of the scripts.