- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Cron not working for user
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
тАО09-30-2006 09:26 AM
тАО09-30-2006 09:26 AM
Cron not working for user
I have a user (not root) cron job that won't start. Nothing in mail and nothing in /var/log/cron. The crontab is as follows:
## ## * * * /u06/scripts/test1.sh
There is no /etc/cron.allow and /etc/cron.deny is empty. I have tried creating a /etc/cron.allow and putting in the user id with no luck.
The cron log shows the crontab edits but doesn't kick off the job.
I have restarted the crond service and server.
Any thoughts?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2006 06:23 PM
тАО09-30-2006 06:23 PM
Re: Cron not working for user
0 0 * * * /u06/scripts/test1.sh
for example, if you want to run this script once a day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2006 09:36 PM
тАО09-30-2006 09:36 PM
Re: Cron not working for user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2006 12:30 AM
тАО10-02-2006 12:30 AM
Re: Cron not working for user
I can run the script outside of cron without any problems.
Still no luck yet.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2006 01:21 AM
тАО10-02-2006 01:21 AM
Re: Cron not working for user
Cron runs with a sanitized classpath of
bin:/usr/bin
Try a test script that just runs the env command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2006 06:14 AM
тАО10-02-2006 06:14 AM
Re: Cron not working for user
1) check that you can run script via command line
2) compare your command line and crontab's environment variables - PATH and others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2006 06:24 AM
тАО10-02-2006 06:24 AM
Re: Cron not working for user
The puzzling thing for me is that these are all things I tried before. The cron log shows a lot of edit & list activity for the user but didn't show and CMD activity until it started running.
Thanks to those who replied.