creating a random message
Ok, I have this super basic script that will email me a file from our server. I created an alias for this so all I have to type is
and within ten seconds I have the file in my inbox. Here is my email script
The code works great but the email is boring. I would like to have it create a random subject when sending the email. I did some researching and I see there is a random command for numbers but is there a way I can create a list of messages it will randomly pick a message and send that?
uuencode $1 $1.txt | mail -s "Here is the file you requested." firstname.lastname@example.org