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
3) Save as something like
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
Then point your email client to your signature, which in my case is /home/username/.signature
To check the options for fortune just hit the man page -
Cheers




