- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to use cron job on hpux
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-23-2005 03:42 AM
08-23-2005 03:42 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 03:44 AM
08-23-2005 03:44 AM
Re: how to use cron job on hpux
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 03:44 AM
08-23-2005 03:44 AM
Re: how to use cron job on hpux
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 03:46 AM
08-23-2005 03:46 AM
Re: how to use cron job on hpux
Set your environment properly and you shuold not have any problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 04:09 AM
08-23-2005 04:09 AM
SolutionYou can do this from command line as follows:
1./var/adm/cron/cron.allow add the username to allow cron.
2. $ crontab -e
3. Add the cron entry , example.
30 1 * * 0 /usr/local/bin/weekly_ignite_bk > /dev/null 2>&1
#[ Every Sunday Ignite backup at 1.30am ]
Hope this may help,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:19 AM
08-23-2005 05:19 AM
Re: how to use cron job on hpux
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:26 AM
08-23-2005 05:26 AM
Re: how to use cron job on hpux
Also remember tese useful fields for cron:
minute The minute of the hour, 0-59
hour The hour of the day, 0-23
monthday The day of the month, 1-31
month The month of the year, 1-12
weekday The day of the week, 0-6,
0=Sunday.
-------------------------------------------
for details , use $ man crontab
Cheers ,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 03:53 PM
08-23-2005 03:53 PM
Re: how to use cron job on hpux
#ps -ef|grep cron
if not running, do this command:
#/sbin/init.d/cron start
2. makesure user that run this cronjob exist at /var/adm/cron/cron.allow
enjoy with hpux,
thx,
-yut-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 04:12 PM
08-23-2005 04:12 PM
Re: how to use cron job on hpux
we run something similar, here what we have in our crontab of the root user. Alternatively, you can allow the oracle user to schedule jobs using CRON and run the same.
file attached.
hope this helps!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 04:20 PM
08-23-2005 04:20 PM
Re: how to use cron job on hpux
Forgot attachment.
Also, make sure that it work by running a demo code which can be as follows:
19 08 * * * echo "/home/oracle10g/testconnect.sh" | su - oracle10g 1>/home/oracle10g/logfiles/output-test.crn 2>/home/oracle10g/logfiles/error-test.crn
(where 08:19 is the current time)
also
create the test script (testconnect.sh) such that:
#more testconnect.sh
sqlplus / <
exit;
EOF
hope this helps!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 08:54 PM
08-23-2005 08:54 PM
Re: how to use cron job on hpux
thanks for ur kind help...
and will soon update this forum with complete details.
Thanks,
SyedMoin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 01:33 AM
08-24-2005 01:33 AM
Re: how to use cron job on hpux
Please check the below link , hope you get more details there ...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=947212
Rgds,
Himanshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 01:48 AM
08-24-2005 01:48 AM
Re: how to use cron job on hpux
Try to find is the cron job run with the environment variables for the user that creates that job, or is that script uses proper shell, I mean is it the same shell as you are in when you starting it manually.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 02:25 AM
08-24-2005 02:25 AM
Re: how to use cron job on hpux
its working fine now thanks for help to all...
In the mail message #/var/mail/root I seen the complete log file of export database, the size will increase soon.it means it will create whenever the cron job will run, I have to truncate this file manually when it full right.
REgards,
Syed