- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to set up cron job HP UX
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
тАО05-03-2011 04:32 AM
тАО05-03-2011 04:32 AM
Unable to set up cron job HP UX
Hallo!I am a total newbie to HP-UX Itanium but have prior experience with Linux.I am trying to set up a cron job to run a script called testscript everyday at 3.20 pm.I have edited the cron script via crontab тАУe as below
5 1 * * * /opt/psb/vacuum
5,20,35,50 * * * * /opt/psb/bin/restart_logserv.sh
5,20,35,50 * * * * /opt/raidsaprovider/bin/restart_raidsaprovider.
sh
5,20,35,50 * * * * /opt/sas/provider/bin/restart_sasprovider.sh
5,20,35,50 * * * * /opt/sfm/bin/restart_sfm.sh
5,20,35,50 * * * * /opt/fcprovider/bin/restart_fcprovider.sh
5,20,35,50 * * * * /opt/dasprovider/bin/restart_dasprovider.sh
20 15 * * * /d01/testscript.sh
But at 3.20 pm the script doesnтАЩt execute.I have edited the cron in Linux in the exact same way and it runs perfectly.
Why cant it run in HP-UX?Also,please explain to me what the numbers 5,20,35,50 mean in HP-UX cron.
Thanks.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2011 04:51 AM
тАО05-03-2011 04:51 AM
Re: Unable to set up cron job HP UX
look at you script and use full path in every command you put..
Also ,you can check /var/adm/cron/log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2011 04:53 AM
тАО05-03-2011 04:53 AM
Re: Unable to set up cron job HP UX
#man crontab
from left: minute hour monthday month weekday
If your script doesn't execute, you can check /var/adm/cron/log for more information .
Are you able to execute the script without using cron?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2011 04:53 AM
тАО05-03-2011 04:53 AM
Re: Unable to set up cron job HP UX
> But at 3.20 pm the script doesn├в t execute.I have edited the cron in Linux in the exact same way and it runs perfectly.
So, does it execute at 5, 35 and 50 minutes after every hour?
Does the script ever execute under 'cron' in your HP-UX environment?
> Also,please explain to me what the numbers 5,20,35,50 mean in HP-UX cron.
# man crontab
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2011 05:02 AM
тАО05-03-2011 05:02 AM
Re: Unable to set up cron job HP UX
Is the script marked as executable?
e.g.
chmod a+x /d01/testscript.sh
Look in your local email inbox (/var/mail/
In HP-UX, the environment of cron jobs is very rudimentary: one of the first lines of your script should probably be:
. /etc/PATH
to load the same PATH environment variable value that is used by regular login sessions.
Look in /var/adm/cron/log: there should be a record indicating the start and stop times of your job. If the stop time record includes "rc=
The numbers like
5,20,35,50 * * * *
mean the job is scheduled to run at xx:05, xx:20, xx:35 and xx:50 each hour.
MK