1) Crack open a text editor, my favorite is vi
2) Here's a copy of my bash script -
Code: Select all
#!/bin/bash
echo `/usr/bin/fortune -n 150 -s -e politics familyguy homer dubya calvin` | cat /home/username/.signature.tag - > /home/username/.signature
email-sig.sh
4) Make it executable
5) Edit /etc/crontab
Code: Select all
#min hour date mon wkday command
*/5 * * * * root /usr/sbin/email-sig.sh
To check the options for fortune just hit the man page -
Cheers