Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-05-2007, 04:42 AM
|
#31
|
Member
Registered: Oct 2007
Posts: 162
Original Poster
Rep:
|
Quote:
Originally Posted by yusufs
Mathew and chris,
Got it.. when running the same script as root user it is executing fine and sends the mail.. whereas non root user cannot..it gives the error :
/bin/sh: /home/oracrp/test/test.sh: Permission denied
[oracrp@oracle test]$ ls -rlt /bin/sh
lrwxrwxrwx 1 root root 4 May 24 2007 /bin/sh -> bash
[oracrp@oracle test]$ ls -rlt /home/oracrp/test/test.sh
-rwxr-xr-x 1 oracrp dba 47 Dec 4 15:15 /home/oracrp/test/test.sh
Comments please
Yusuf
|
Sad Pals,
the first time as root user cron is getting executed and some times not.. am really confused.
Yusuf
|
|
|
12-05-2007, 04:54 AM
|
#32
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
Quote:
Originally Posted by yusufs
Sad Pals,
the first time as root user cron is getting executed and some times not.. am really confused.
Yusuf
|
Curiouser and curiouser...
|
|
|
12-05-2007, 04:59 AM
|
#33
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
Is the system under very heavy load? I assume from the original subject of the post that this is an oracle database server, and in my experience oracle tends to sit on pretty much all system resources.
One thought I had was that maybe you're running up against the number of processes limit for the user. However, I would expect a different error message in this case.
Maybe you're hitting the open files limit?
|
|
|
12-05-2007, 07:51 AM
|
#34
|
Member
Registered: Oct 2007
Posts: 162
Original Poster
Rep:
|
Quote:
Originally Posted by matthewg42
Is the system under very heavy load? I assume from the original subject of the post that this is an oracle database server, and in my experience oracle tends to sit on pretty much all system resources.
One thought I had was that maybe you're running up against the number of processes limit for the user. However, I would expect a different error message in this case.
Maybe you're hitting the open files limit?
|
No mathew.. everything is fine..system resoure is 95% free as this is a fresh production and less users are connected.
Thanks
Yusuf
|
|
|
12-05-2007, 08:06 AM
|
#35
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
It's a mystery to me then.
|
|
|
12-05-2007, 07:00 PM
|
#36
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,425
|
I agree with verifying the content of the file and suggest using
set -xv
as the 2nd line (in the file) to get sh/bash to show us what it's doing in detail.
|
|
|
12-05-2007, 08:34 PM
|
#37
|
Member
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307
Rep:
|
Ignore me... I jumped in from the 1st page no realizing there were 3 pages... what I wrote had nothing to with where you guys were at...
Last edited by checkmate3001; 12-05-2007 at 08:38 PM.
|
|
|
12-26-2007, 08:01 AM
|
#38
|
Member
Registered: Oct 2007
Posts: 162
Original Poster
Rep:
|
Quote:
Originally Posted by yusufs
Mathew,
Cron is working fine.. I tried creating a sample file with the cron and it created.. the problem with that it is not sending the mails.
where i can see the cronjob logs of the user
Guide
Yusuf
|
In addition to the above, cron is working fine only once..
for ex.. if cron is scheduled at 5am.. it is runnin and sending the mail, whereas if I make any changes in the schedule , then I have to restart the cron deamon.. then too, if the schedule is set to run every min. it is running only once..
Please guide and comment if any
Yusuf
|
|
|
12-27-2007, 06:01 PM
|
#39
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
Even more confounding. This is not normal. I have no clue what the problem might be.
|
|
|
All times are GMT -5. The time now is 02:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|