- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab erroring out with rc=1
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
Discussions
Discussions
Forums
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
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
тАО08-10-2006 02:26 AM
тАО08-10-2006 02:26 AM
Re: crontab erroring out with rc=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 02:39 AM
тАО08-10-2006 02:39 AM
Re: crontab erroring out with rc=1
Try that and see if it will tell you which command is failing.
Its almost got to be either a path issue, or possibly something from the .bashrc file that needs to be set up in the script for it to run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 02:39 AM
тАО08-10-2006 02:39 AM
Re: crontab erroring out with rc=1
#!/bin/bash -x
And redirect all output to a separate log file. e.g.:
30 * * * * . /data/vision/scripts/test.sh > /tmp/test.log 2>&1
What is in /tmp/test.log after that runs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 03:45 AM
тАО08-10-2006 03:45 AM
Re: crontab erroring out with rc=1
surround those commands with something like
if [ -t 0 ]
then
tput
...
fi
or better still have your cron'ed script and .profile source a file which sets and exports the needed environment variables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 09:37 PM
тАО08-10-2006 09:37 PM
Re: crontab erroring out with rc=1
I have tried including the .profile and environment. Still no sucess. Enclosed is the debug file.
- « Previous
-
- 1
- 2
- Next »