HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron and sendmail
Operating System - HP-UX
1834185
Members
2654
Online
110064
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 02:21 AM
04-07-2003 02:21 AM
cron and sendmail
Greetings all,
I need your help please. How do i get started with scheduling a job using crontab? Also I would like to have the output of the job to be sent to my outlook mailbox. So how do i set up mail in HP-UX.
Thanks for your kind response.
Regards,
Nago
I need your help please. How do i get started with scheduling a job using crontab? Also I would like to have the output of the job to be sent to my outlook mailbox. So how do i set up mail in HP-UX.
Thanks for your kind response.
Regards,
Nago
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 02:34 AM
04-07-2003 02:34 AM
Re: cron and sendmail
hi,
first i would suggest you to read the man pages for crontab. also get a good sysadmin book and read.
now for your question.
1. edit crontab
crontab -e
2. add entry for your scheduled job. create a script which contains your job and
add it. It contains six fields the time related fields in the order (copy paste frm man page) are given below. the sixth field is the absolute path to your script.
++++++++++++++
The time and date fields are:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
A field may be an asterisk (*), which always stands for ``first-last''.
++++++++++++
3. as a part of your script itself you can redirect your output to a mail id or pipe the output in the crontab to mail.
4. setup sendmail to relay all mails to your mail server. this is done by changing the entry which contains the macro DS in /etc/sendmail.cf file to the ip address or hostname of your mail server.
DS
to
DSmailserver.name.com
5. restart sendmail.
if you need more info, revert with specifics.
hth
-balaji
first i would suggest you to read the man pages for crontab. also get a good sysadmin book and read.
now for your question.
1. edit crontab
crontab -e
2. add entry for your scheduled job. create a script which contains your job and
add it. It contains six fields the time related fields in the order (copy paste frm man page) are given below. the sixth field is the absolute path to your script.
++++++++++++++
The time and date fields are:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
A field may be an asterisk (*), which always stands for ``first-last''.
++++++++++++
3. as a part of your script itself you can redirect your output to a mail id or pipe the output in the crontab to mail.
4. setup sendmail to relay all mails to your mail server. this is done by changing the entry which contains the macro DS in /etc/sendmail.cf file to the ip address or hostname of your mail server.
DS
to
DSmailserver.name.com
5. restart sendmail.
if you need more info, revert with specifics.
hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 02:37 AM
04-07-2003 02:37 AM
Re: cron and sendmail
Hi Nago
Happy reading
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90681/B2355-90681_top.html&con=/hpux/onlinedocs/B2355-90681/00/00/49-con.html&toc=/hpux/onlinedocs/B2355-90681/00/00/49-toc.html&searchterms=cron&queryid=20030407-043532
HTH
Steve
Happy reading
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90681/B2355-90681_top.html&con=/hpux/onlinedocs/B2355-90681/00/00/49-con.html&toc=/hpux/onlinedocs/B2355-90681/00/00/49-toc.html&searchterms=cron&queryid=20030407-043532
HTH
Steve
take your time and think things through
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP