- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron job 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
08-21-2001 07:04 AM
08-21-2001 07:04 AM
cron job not working!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2001 11:18 PM
08-22-2001 11:18 PM
Re: cron job not working!
Is "cron job not working" the only prob description? Could you pls elaborate more on that? Thanks..
Rgds,
Pau Cen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2001 11:32 PM
08-22-2001 11:32 PM
Re: cron job not working!
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2001 11:33 PM
08-22-2001 11:33 PM
Re: cron job not working!
crontab -l
It doesn't harm if you run this command
crontab -l > my_cron_file
crontab my_cron_file
Also you can check if the job ran or not in /var/adm/cron/log file
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 12:16 AM
08-23-2001 12:16 AM
Re: cron job not working!
1.Ensure that there is something planned with crontab :
#crontab -l [UserName]
without username , stands for root.
2. Verify that the syntaxe is OK inside the crontab file :
minutes hour monthday month weekday command
minutes : 0-59
hour : 0-23
monthday : 1-31
month : 1-12
weekday : 0-6 ( 0 is sunday )
3. Ensure ( very important ) that the envirenment profile file for a specific user is executed at the begining of the crontab job :
. /home/users/.../.profile
4. Ensure that the process /usr/sbin/cron is running.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 12:22 AM
08-23-2001 12:22 AM
Re: cron job not working!
I think you'll find Mark's empty query was actually posted with the text 3 mins. later:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x095f1012aa92d5118ff10090279cd0f9,00.html
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 12:30 AM
08-23-2001 12:30 AM
Re: cron job not working!
The command in the crontab file, in my last post, should by in absolute path to avoid any miss of environment setting. Like :
examples :
0,30 12,17 * * * /home/users/checkSpace.sh
This command checks space all at :
- zero and 30 minutes ( You can add other minutes with comma separator ).
- 12 and 17 hour ( You can add other hours with comma separator ).
- All days in month ( * stand for all days, you still can add any days in month with comma separator).
- All months in year ( * stand for all months, you still can add any months in year with comma separator).
- All days in week( * stand for all days, you still can add any days in week with comma separator).
Magdi