- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: cron not running
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
03-10-2005 12:21 PM
03-10-2005 12:21 PM
cron not running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 03:40 PM
03-10-2005 03:40 PM
Re: cron not running
add a line to the script:
env > /tmp/$env.txt
Let cron run it and then run it manually.
diff the two files.
There will be different and when corrected the behavior should be consistent.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 06:15 PM
03-10-2005 06:15 PM
Re: cron not running
Check your env,Cron runs in posix born shell.Also check your syntax when you crontab -e.
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 06:18 PM
03-10-2005 06:18 PM
Re: cron not running
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=5398
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=449988
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 08:25 PM
03-10-2005 08:25 PM
Re: cron not running
I suggest you can export environment values in the crontab to have a try. For example:
crontab -e
====================
export xxx=xxxx
*/5 * * * * /test.sh
=====================
NiCK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 10:17 PM
03-10-2005 10:17 PM
Re: cron not running
Its most of the time as mentioned by others due to environment not being set properly.
If you are having problems trying to figure it out, post it here and the one having sharp eyes will get it first :)
rgds
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 01:58 AM
03-11-2005 01:58 AM
Re: cron not running
as all mentioned before, set all needed variables before job is running
bellow is example for my Oracle env.
#!/bin/bash
export ORACLE_SID="SMS"
export TWO_TASK=SMS
export ORACLE_HOME="/opt/Oracle"
export PATH="/usr/bin/:$ORACLE_HOME/bin:"
rgds Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 03:53 AM
03-11-2005 03:53 AM
Re: cron not running
Also I don't know if it makes a difference but my elm permission is the following..
-rwxr-sr-x 1 bin mail 325106 Mar 10 13:57 elm
Any help is appreciated and points will be assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 05:56 AM
03-11-2005 05:56 AM
Re: cron not running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 05:57 AM
03-11-2005 05:57 AM