- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- job run in cron produces no output
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
05-21-2004 04:54 AM
05-21-2004 04:54 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 04:56 AM
05-21-2004 04:56 AM
Re: job run in cron produces no output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 04:57 AM
05-21-2004 04:57 AM
Re: job run in cron produces no output
if so, you may have a problem with the redirection.
You may try posting the scripts or at least the related parts of it, if it is too long.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 04:59 AM
05-21-2004 04:59 AM
Solution2) can be addressed by the test
if [ -t 0 ]
then
echo "Interactive"
else
echo "Batch"
fi
A typical error occurs with a cron'ed su - user command. The - sources user's .profile and it almost always have commands like tset and stty that expect a terminal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 05:01 AM
05-21-2004 05:01 AM
Re: job run in cron produces no output
Do you have a path statement in the script or call commands with full pathing? The environment for minimal and will not have the same values as your shell session.
HTH,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 05:02 AM
05-21-2004 05:02 AM
Re: job run in cron produces no output
Could you please check a mail for the user which run this cron job. Additionally please check whether somewhere in the script or crontab you use indefined environment variable. Take into account that scripts which run under crontab don't obtain full user's environment. You can see defined variables if run command env in a cron job.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2004 05:06 AM
05-21-2004 05:06 AM
Re: job run in cron produces no output
Clay was closest to the problem - PATH being the issue. Root had the command is its PATH, but cron wouldn't pick that up - so the script was running but not one of the commands inside it. I put the full path in the script a viola...sheepish look here...
Thanks again