HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- standard crontab message redirection
Operating System - HP-UX
1834228
Members
2675
Online
110066
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
Go to solution
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
03-31-2003 11:47 PM
03-31-2003 11:47 PM
hi all,
i'd like to ask for help in the following matter:
how to redirect standard message generated by crontab? each time after the commands are executed by crontab, standard message is written in /var/adm . i'd like to have the messages written in users home directory.
thanks.
i'd like to ask for help in the following matter:
how to redirect standard message generated by crontab? each time after the commands are executed by crontab, standard message is written in /var/adm . i'd like to have the messages written in users home directory.
thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:51 PM
03-31-2003 11:51 PM
Re: standard crontab message redirection
hi,
i do it this way:
============================================================
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
#*******************************************************************************
0,5,10,15,20,25,30,35,40,45,50,55 * * * * my_scr.sh 1>/home/yogeeraj/logfiles/output-myscr.crn 2>/home/yogeeraj/logfiles/error-myscr.crn
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
#*******************************************************************************
#*******************************************************************************
# END OF TABLE day0->Sunday day6->Saturday
#*******************************************************************************
============================================================
hth
Yogeeraj
i do it this way:
============================================================
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
#*******************************************************************************
0,5,10,15,20,25,30,35,40,45,50,55 * * * * my_scr.sh 1>/home/yogeeraj/logfiles/output-myscr.crn 2>/home/yogeeraj/logfiles/error-myscr.crn
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
#*******************************************************************************
#*******************************************************************************
# END OF TABLE day0->Sunday day6->Saturday
#*******************************************************************************
============================================================
hth
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 12:01 AM
04-01-2003 12:01 AM
Re: standard crontab message redirection
standard redirection works in crontab as well. just redirect the standard o/p and standard error to files of ur choice.
hth
-balaji
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-01-2003 12:08 AM
04-01-2003 12:08 AM
Solution
Hi,
you can redirect the output of the users jobs to what you want, but the messages in /var/adm/cron/log concerning the run of the jobs themselves cannot be redirected - at least not with 100% guarentee. If you do not redirect the output from the cron jobs themselves it is mailed to the user who executes the job.
regards,
John K.
you can redirect the output of the users jobs to what you want, but the messages in /var/adm/cron/log concerning the run of the jobs themselves cannot be redirected - at least not with 100% guarentee. If you do not redirect the output from the cron jobs themselves it is mailed to the user who executes the job.
regards,
John K.
it would be nice if you always got a second chance
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