- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab configutration
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
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
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-20-2006 12:57 PM
тАО02-20-2006 12:57 PM
crontab configutration
20 19 21 2 2 make_tape_recovery -Av &
but, it didn't work, why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2006 01:46 PM
тАО02-20-2006 01:46 PM
Re: crontab configutration
Hi,
Always mention the OBSOLUTE PATH of the command to be executed in the crontab.
That could be the reason.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2006 01:48 PM
тАО02-20-2006 01:48 PM
Re: crontab configutration
You need to create a file (eg. /usr/contrib/bin/make_ignite_master_tape.sh) with the contain of below :
/opt/ignite/bin/make_tape_recovery -A -I -v -x inc_entire=/dev/vg00 -a /dev/rmt/
0mnb > /tmp/make_master_tape.out 2>&1
After that, put on the crontab :
20 19 21 2 2 /usr/contrib/bin/make_ignite_master_tape.sh > /dev/null 2>&1
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2006 02:16 PM
тАО02-20-2006 02:16 PM
Re: crontab configutration
You have to give full or absolute path in cron jobs just like, opt/ignite/bin/make_tape_recovery
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2006 02:25 PM
тАО02-20-2006 02:25 PM
Re: crontab configutration
Cron does not run profile therefore you have to initialise the variables in the script. So You have to give full or absolute path in cron jobs.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2006 02:35 PM
тАО02-20-2006 02:35 PM
Re: crontab configutration
20 19 21 2 2 /opt/ignite/bin/make_tape_recovery -Av 1>/tmp/test.log 2>/tmp/test.err
It is good to have log files for tracking.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2006 03:16 PM
тАО02-20-2006 03:16 PM
Re: crontab configutration
make sure that your script is working in isolation also.
if you find it OK then you can include it in you crontab.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 09:42 PM
тАО02-22-2006 09:42 PM
Re: crontab configutration
look at the files:
var/adm/cron/cron.allow
to see if you are an allow user
/var/adm/cron/cron.deny
to see if you are not a deny user
/var/adm/cron/log
to see which is teh poblem of your script.
probbaly it needs a absolute path. Remeber that crontab doens't load the .rpofile for teh user.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 09:50 PM
тАО02-22-2006 09:50 PM
Re: crontab configutration
It is missing the absolute path as mentioned also no need of the "&" at the end. with an & i guess it wil run at a priority of 24. better put it in a script and mention the script name in the crontab, remember you need to be root to create the crontab to run that command.
Good Luck,
Ajit