- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cronjob is not running on Sun Solaris
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
тАО12-16-2006 11:52 PM
тАО12-16-2006 11:52 PM
1) I created a file named ora10r2 under /var/spool/cron/crontabs/ directory.
In ora10r2 file I am a calling a script called test.sh which runs at 2:55pm.
55 14 * * * /01/mustu/test.sh /u01/mustu/test.log 2>&1
test.sh file exist under /01/mustu and it is having full permission.
but it is not running.
Regards
Musaddaq
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 01:25 AM
тАО12-17-2006 01:25 AM
Re: cronjob is not running on Sun Solaris
If you want to use this forum, maybe because the hpux folks are nicer? then be sure to look around first.
This question has been asked and answerred many times before:
google: +cron +oracle +site:itrc.hp.com
Make sure that while testing the script starts with a simple echo/print "hello world" to be able to clearly distinguish not-running from not-running-correctly.
Next put an 'env' in there.
:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=83820
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=106223
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 03:06 AM
тАО12-17-2006 03:06 AM
Re: cronjob is not running on Sun Solaris
Another thing, is ora10r2 an actual user? If not, then it won't work either. Crontab files must be named just like users.
If ora10r2 is a user, then try this:
# su - ora10r2
to become the user.
# crontab -e
to edit the crontab file. Now make sure the job looks right. Now save and quit out of the file.
After that it should run at 14:55 daily.
You may also want to verify the permissions on the ora10r2 file are correct. They should be the same as the other files in the crontab directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 12:56 PM
тАО12-17-2006 12:56 PM
Re: cronjob is not running on Sun Solaris
a) Other respondents are right. You do not
add crontab into /var/spool/cron/crontabs directory manually.
It is best to do it via command:
crontab -e
b) In Solaris, you can also use
files to update the cron jobs. For example
crontab /var/tmp/neworacle.txt
When crontab(1) is invoked with filename, it
overwrites an existing crontab entry for the
user that invokes it.
c) Also, make sure that, by any chance,
/etc/cron.d/cron.deny does not list
oracle. Otherwise, you will not be able
to run the jobs.
May 2007 bring peace and good health
to all,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 04:55 PM
тАО12-17-2006 04:55 PM
Re: cronjob is not running on Sun Solaris
I tried with crontab -e but instead of file to edit it shows me some number.
and ora10r2 is an oracle user.
and Secondly you are right I created the file in vi editor and then added to crontab.
Some of you ppl are suggesting me to set the Environment how exactly I do that.
Regards
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 07:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 03:50 PM
тАО12-18-2006 03:50 PM
Re: cronjob is not running on Sun Solaris
1. su - oracle
2. crontab -l
do you see any entries for this user oracle ?
if not, then you do NOT have an entry or cron entry for this user..
also note: crontab works on user account names.. so study the "cron.allow" file..
search: http://docs.hp.com
and enter string: cron.allow
or string: cron
keep in mind: HP-UX rules, just joking but it's true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 04:10 PM
тАО12-18-2006 04:10 PM
Re: cronjob is not running on Sun Solaris
i would prefer that you first do a:
crontab -l > /tmp/crontab2edit.txt
then edit the file to make appropriate modifications:
vi /tmp/crontab2edit.txt
(or just ftp it to you windows environment to make the modifications and ftp it back)
and finally load it using:
crontab /tmp/crontab2edit.txt
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 04:14 PM
тАО12-18-2006 04:14 PM
Re: cronjob is not running on Sun Solaris
Thamks a lot for ur response. Cronjob is working fine now.
Have a gr8 day.
Regards
Musaddaq