LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 12-05-2007, 03:42 AM   #31
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30

Quote:
Originally Posted by yusufs View Post
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
 
Old 12-05-2007, 03:54 AM   #32
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Quote:
Originally Posted by yusufs View Post
Sad Pals,

the first time as root user cron is getting executed and some times not.. am really confused.


Yusuf
Curiouser and curiouser...
 
Old 12-05-2007, 03:59 AM   #33
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
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?
 
Old 12-05-2007, 06:51 AM   #34
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by matthewg42 View Post
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
 
Old 12-05-2007, 07:06 AM   #35
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
It's a mystery to me then.
 
Old 12-05-2007, 06:00 PM   #36
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,287

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
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.
 
Old 12-05-2007, 07:34 PM   #37
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 301

Rep: Reputation: 32
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 07:38 PM.
 
Old 12-26-2007, 07:01 AM   #38
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by yusufs View Post
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
 
Old 12-27-2007, 05:01 PM   #39
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Even more confounding. This is not normal. I have no clue what the problem might be.
 
  


Reply

Tags
chmod, cron, grep, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U Suse/Novell 11 01-04-2007 01:57 AM
Cron not Executing PHP script Badnoodles Linux - General 2 10-25-2006 04:56 PM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM
Executing cron jobs on a w2k3 server using cygwin hq4ever General 4 06-01-2005 06:45 AM


All times are GMT -5. The time now is 02:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration