I have an FTP process that sends an e-mail confirmation:
mailx -s "File Transferred" -r username receipient@someco.com < sometext.txt
or
mailx -s "No File Transferred" -r username receipient@someco.com < othertext.txt
In the sometext/othertext.txt, I woukld like to put the date. Something like this:
(No) files were created on : $date
How can I pass the date into the text file?
How can I add the date on my subject - "No Files Transferred"
Any help will be greatly appreciated.
mailx -s "File Transferred" -r username receipient@someco.com < sometext.txt
or
mailx -s "No File Transferred" -r username receipient@someco.com < othertext.txt
In the sometext/othertext.txt, I woukld like to put the date. Something like this:
(No) files were created on : $date
How can I pass the date into the text file?
How can I add the date on my subject - "No Files Transferred"
Any help will be greatly appreciated.