nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Automatic Sendmail

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 ...


Go Back   nixCraft Linux Forum > UNIX operating systems > Solaris/OpenSolaris

Linux answers from nixCraft.


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.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-01-2007, 01:56 PM
Junior Member
User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kobi
Default Automatic Sendmail

Hi

I need to configure how to schedule automatic send mail via sendmail.
In order to receive error logs.
It works fine manually.

Thanks'
Kobi
Reply With Quote
  #2 (permalink)  
Old 25-01-2007, 12:19 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

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
Setup a cron job:
Code:
crontab -e
Add job
Code:
13 0 * * * /path/to/script.sh >/dev/null 2>&1
See cronjob faq for more info http://www.cyberciti.biz/faq/how-do-...-or-unix-oses/
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 25-01-2007, 12:04 PM
Junior Member
User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Kobi
Default

Thanks' !!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

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


All times are GMT +5.5. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38