PDA

View Full Version : Shell script output to qmail?


Benson
07-13-2001, 10:30 AM
Could someone enlighten me on how I would create a shell script that would create output to qmail? I want to then execute this script via cron. For instance, how would I run 'finger' and send the result to myself via e-mail (twice a day via cron)?

Bruce
07-13-2001, 12:36 PM
The simplest thing for this specific case would be to do: finger address@server | mailsubj "Today's finger" youremail@domain