This is a discussion on Automatic Sendmail within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; Hi I need to configure how to schedule automatic send mail via sendmail. In order to receive error logs. It ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||
|
You need to configure cornjob to run your shell script. A sample shell script:
Code:
#!/bin/sh # add other logic and final command mail -s 'Subject' somewhere@domain.com < /tmp/logmessage.txt Code:
crontab -e Code:
13 0 * * * /path/to/script.sh >/dev/null 2>&1 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sendmail Server!!!!!!!!!!!!!!! | amsreeku | Linux software | 1 | 04-24-2008 05:32 PM |
| Automatic Mount of Windows Share | bayvista | Networking, Firewalls and Security | 0 | 02-21-2008 11:07 AM |
| Automatic IP change notifier | SAYAYINX | Shell scripting | 9 | 07-13-2007 09:49 PM |
| Automatic startup service | gthian | Shell scripting | 0 | 06-24-2007 08:21 AM |
| new for sendmail | kasimani | Linux software | 2 | 07-23-2006 09:54 AM |