Quote:
Originally Posted by jlliagre
Where is the "following shell script" ?
|
Sorry I not pasted the script.
Here is the script
=====================
echo "SCRIPT TO MAIL A FILE TO
emailid@xyz.com"
echo "Enter FILENAME : \c"
stty -echo
read V_FILENAME
P_SUBJECT=`echo "$1"|cut -d'"' -f8`
P_MAIL_TO=`echo "$1"|cut -d'"' -f12`
P_FILE=`echo "$1"|cut -d'"' -f14`
#
echo EMAILING FILE echo $V_FILENAME
uuencode "$V_FILENAME" "$V_FILENAME"|mailx -s "$V_FILENAME"
emailid@xyz.com
if [ $? -ne 0 ]
then
echo ""
echo "Fail to send mailto ${P_MAIL_TO} with mail subject ${P_SUBJECT}"
echo ""
exit 1
fi
exit 0
=================
Thanks,
Raj