- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron issue
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
09-07-2005 09:52 PM
09-07-2005 09:52 PM
cron issue
I have got a script that runs successfully from the command line but simply will not run when scheduled on the cron:
10 30 * * * /u/cimrf/scripts/testinvscripts.s
I am not sure if this is related but I am also unable to undate the cron using "crontab -e" and have to opt for vi'ing the /var/spool/cron/crontabs/root file.
Any ideas what the problem could be??
Cheers,
D.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 10:00 PM
09-07-2005 10:00 PM
Re: cron issue
Usually, a script that runs fine from the command line but won't run through cron needs to have it's environment variables set in it. Cron provides a very minimal environment and the script needs to explicitly define all it's environment variables and use full path names to all commands.
As far as editing cron, try using crontab -l to create a cron file in your home directory:
"crontab -l > ~/cron.
Then use vi to edit that file and resubmit it with:
"crontab ~/cron.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 10:01 PM
09-07-2005 10:01 PM
Re: cron issue
1st could you check if you have a cron.allow or cron.deny file in /var/adm/cron ?
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 10:06 PM
09-07-2005 10:06 PM
Re: cron issue
Apologies for not mentioning it but I have already tried this but still no cigar.
Jean-Luc, I have both cron.allow/deny in that directory also.
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2005 10:18 PM
09-07-2005 10:18 PM