HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cron error message
Operating System - HP-UX
1836607
Members
2056
Online
110102
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
09-25-2008 11:03 AM
09-25-2008 11:03 AM
Cron error message
Subject: cron
Redirection or piping of stdin or stdout is allowed only with -b. (156)
*********************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
/batchrun/shiprpt/shiprpt.sh
********************************************
But I can run '/batchrun/shiprpt/shiprpt.sh' manually.
Please help, Thanks!
Redirection or piping of stdin or stdout is allowed only with -b. (156)
*********************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
/batchrun/shiprpt/shiprpt.sh
********************************************
But I can run '/batchrun/shiprpt/shiprpt.sh' manually.
Please help, Thanks!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2008 11:13 AM
09-25-2008 11:13 AM
Re: Cron error message
Please post your cron entry
Please post your version of HPUX
99% of the issue with cron are:
cron jobs do NOT include a standard environment, so the script working manually only says your interactive environment is OK. It does not prove that the environment while executing your script via cron is ok.
Include all needed environment vars in your script. I do not directly know nor have ever seen "Redirection or piping of stdin or stdout is allowed only with -b. (156)" so I do not know if the error is from cron itself ( don't think so ) or from some unknown command in your script.
Please post your version of HPUX
99% of the issue with cron are:
cron jobs do NOT include a standard environment, so the script working manually only says your interactive environment is OK. It does not prove that the environment while executing your script via cron is ok.
Include all needed environment vars in your script. I do not directly know nor have ever seen "Redirection or piping of stdin or stdout is allowed only with -b. (156)" so I do not know if the error is from cron itself ( don't think so ) or from some unknown command in your script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2008 11:17 AM
09-25-2008 11:17 AM
Re: Cron error message
Hi:
Any output (STDERR or STDOUT) from a 'cron' task that isn't redirected is mailed to the initiating user account when a task is run by the 'cron' daemon.
You can do:
* * * * * /batchrun/shiprpt/shiprpt.sh > /dev/null 2>&1
...which would "bit-bucket" all STDOUT and STDERR and thus eliminate the mail you received.
The message you posted at the top "Redirection or piping of stdin or stdout is allowed only with -b" is interesting. Is this HP-UX using its 'cron' ?
Regards!
...JRF...
Regards!
...JRF...
Any output (STDERR or STDOUT) from a 'cron' task that isn't redirected is mailed to the initiating user account when a task is run by the 'cron' daemon.
You can do:
* * * * * /batchrun/shiprpt/shiprpt.sh > /dev/null 2>&1
...which would "bit-bucket" all STDOUT and STDERR and thus eliminate the mail you received.
The message you posted at the top "Redirection or piping of stdin or stdout is allowed only with -b" is interesting. Is this HP-UX using its 'cron' ?
Regards!
...JRF...
Regards!
...JRF...
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