Please help!!!
I have to create a bash script which mails the contents of a file to other users. I have to also create another file in my home directory which contains a log of the emails that I have sent. The script is supposed to append to this file the current date and time followed by the email address of the person receiving the file. I'm supposed to used 2 parameters - one of the file to be sent and the other the email address the file is to be sent to. How do I do this? It's supposed to be very simple to do - just a few lines - but I'm going nuts trying to figure it out. Thanks for any help anybody can give me.
I have to create a bash script which mails the contents of a file to other users. I have to also create another file in my home directory which contains a log of the emails that I have sent. The script is supposed to append to this file the current date and time followed by the email address of the person receiving the file. I'm supposed to used 2 parameters - one of the file to be sent and the other the email address the file is to be sent to. How do I do this? It's supposed to be very simple to do - just a few lines - but I'm going nuts trying to figure it out. Thanks for any help anybody can give me.