OS: Solaris 10
I am writing a script to email a file to my email id.
instead of each time trying to type whole command, I want just enter file name then it should email me that file as attachment. Following is the script.
echo "Script to email a file"
echo "Enter file name :\c"
echo "emailing $FILENAME"
uuencode $FILENAME $FILENAME | mailx -s "$V_FILENAME" firstname.lastname@example.org
echo "file has been emailed"
I need help your help...