- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mail with subject : cron
Operating System - HP-UX
1824169
Members
3324
Online
109669
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
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
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
тАО10-12-2000 07:34 PM
тАО10-12-2000 07:34 PM
Mail with subject : cron
Hi,
Any idea what the below mail is trying to say, and how can I resolve it as I've got lots of mails with subject "cron".
From root@newmfg Fri Oct 13 11:30:39 EAT 2000
Received: (from root@localhost) by newmfg. (8.8.6 (PHNE_17190)/8.7.1) id LAA1862
3 for root; Fri, 13 Oct 2000 11:30:38 +0800 (EAT)
Date: Fri, 13 Oct 2000 11:30:38 +0800 (EAT)
From: root@newmfg
Message-Id: <200010130330.LAA18623@newmfg.>
Subject: cron
Status: R
stty: : Not a typewriter
stty: : Not a typewriter
stty: : Not a typewriter
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
/mfgpro/admin/batch/minutes > /mfgpro/batch/minutes.mon #batch job for every 10
minutes
Any idea what the below mail is trying to say, and how can I resolve it as I've got lots of mails with subject "cron".
From root@newmfg Fri Oct 13 11:30:39 EAT 2000
Received: (from root@localhost) by newmfg. (8.8.6 (PHNE_17190)/8.7.1) id LAA1862
3 for root; Fri, 13 Oct 2000 11:30:38 +0800 (EAT)
Date: Fri, 13 Oct 2000 11:30:38 +0800 (EAT)
From: root@newmfg
Message-Id: <200010130330.LAA18623@newmfg.>
Subject: cron
Status: R
stty: : Not a typewriter
stty: : Not a typewriter
stty: : Not a typewriter
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
/mfgpro/admin/batch/minutes > /mfgpro/batch/minutes.mon #batch job for every 10
minutes
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2000 08:01 PM
тАО10-12-2000 08:01 PM
Re: Mail with subject : cron
Tan:
The explanation is as follows. You have a job that is invoked from the cron, but that generates an output which is not thrown away. In order to get it to be thrown away, you have to redirect the standard error/standard output to /dev/null or if there is a log file you want it to go to , specify that eg edit your crontab so that the line reads:
/mfgpro/admin/batch/minutes > /mfgpro/batch/minutes.mon 2>&1
This tells the system that any messages generated for Standard error (file descriptor 2) should be sent to standard output (file descriptor 1) which in the case of the above is redirected to the file /mfgpro/batch/minutes.mon
Hope this helps.
The explanation is as follows. You have a job that is invoked from the cron, but that generates an output which is not thrown away. In order to get it to be thrown away, you have to redirect the standard error/standard output to /dev/null or if there is a log file you want it to go to , specify that eg edit your crontab so that the line reads:
/mfgpro/admin/batch/minutes > /mfgpro/batch/minutes.mon 2>&1
This tells the system that any messages generated for Standard error (file descriptor 2) should be sent to standard output (file descriptor 1) which in the case of the above is redirected to the file /mfgpro/batch/minutes.mon
Hope this helps.
nothing wrong with me that a few lines of code cannot fix!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2000 11:11 PM
тАО10-12-2000 11:11 PM
Re: Mail with subject : cron
Hi,
your messages are generated from the stty command. This command is trying to change terminal behavior but when doing by cron there is no terminal assosiated with a terminal.
So look in your batch scripts for any stty command.
Another senario is when the script uses the command: su - ...
Then the /etc/profile and $HOME/.profile of that user is executed. If there are stty command you get also these messages. To prevent this put any stty commands in the profiles whithin:
if [ -t ]
then
stty .....
fi
This ensures that stty commands are only executed when process is assisiated with a terminal
Regards
your messages are generated from the stty command. This command is trying to change terminal behavior but when doing by cron there is no terminal assosiated with a terminal.
So look in your batch scripts for any stty command.
Another senario is when the script uses the command: su -
Then the /etc/profile and $HOME/.profile of that user is executed. If there are stty command you get also these messages. To prevent this put any stty commands in the profiles whithin:
if [ -t ]
then
stty .....
fi
This ensures that stty commands are only executed when process is assisiated with a terminal
Regards
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP