Code:
#!/bin/bash
echo "test" | mail -s testsubject user@domain.com
I have a little one liner script that sends an email message - what's the best way to set it up so that this script sends mail for about 2 hours? wrap the mail line in a large for loop?
I may want to also vary the rate of sending. Any ideas?