Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Solaris/OpenSolaris Discuss all about the SUN Solairs/OpenSolaris. You are free to talk about any issues related to Solaris administration, networking, services and other stuff, share information or ask doubts. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| 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
__________________
Vivek Gite Linux Evangelist |
![]() |
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 | 24-04-2008 05:32 PM |
| Automatic Mount of Windows Share | bayvista | Networking, Firewalls and Security | 0 | 21-02-2008 11:07 AM |
| Automatic IP change notifier | SAYAYINX | Shell scripting | 9 | 13-07-2007 09:49 PM |
| Automatic startup service | gthian | Shell scripting | 0 | 24-06-2007 08:21 AM |
| new for sendmail | kasimani | Linux software | 2 | 23-07-2006 09:54 AM |