- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Crontab not working
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
02-03-2006 06:49 AM
02-03-2006 06:49 AM
Crontab not working
we are facing some problems with crontab
we have scheduled a dba maitainence scripts at various timings in the crontab but it fails to execute ,even the user has access to run cron jobs we are able to login as particular user , and all other users cron jobs are working,
kindly suggest us to help me getting this sorted out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 06:54 AM
02-03-2006 06:54 AM
Re: Crontab not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 06:55 AM
02-03-2006 06:55 AM
Re: Crontab not working
Check the permissions to that file and ownership
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 06:55 AM
02-03-2006 06:55 AM
Re: Crontab not working
Secondly, check /var/adm/cron/log for errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 06:57 AM
02-03-2006 06:57 AM
Re: Crontab not working
> CMD: /apps/hols/bin/wb/checkweb.ksh
> informix 2340 c Fri Jan 27 05:59:00 EST 2006
< informix 2340 c Fri Jan 27 05:59:01 EST 2006
You may also see an error message if the job started and failed. The most common error with cron jobs is the lack of environment. You have to set environment variables within the job and you need to specify full path names to all command used.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 06:58 AM
02-03-2006 06:58 AM
Re: Crontab not working
I suspect that the real problem is that the script is actually being started but is failing because it is missing critical environment variables (e.g. PATH) when run under cron. Cron has an intentionally sparse environemnt and it is necessary to explicitly set PATH and other variable in the script itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 07:00 AM
02-03-2006 07:00 AM
Re: Crontab not working
does the user have the right environment variables set? The user may need to do a su - in the cronjob in order to get the variables for the db maintenance to ork - or you may need to put all the variables in the users .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 07:02 AM
02-03-2006 07:02 AM