LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-08-2003, 04:23 AM   #1
manojthakkar
LQ Newbie
 
Registered: Dec 2003
Posts: 12

Rep: Reputation: 0
facing problem with cronjobs


Hi i ahve configured cronjobs for certain backups on my clearcase server but i am getting some dump emails stating like CLBU VOB Admin in subject and the contents says like

Cron: can't change directory to your home directory.
Your commands will not be executed.

kindly suggest
 
Old 12-08-2003, 05:45 AM   #2
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Dig into scripts which you configured running from cron.
Try to start scripts from user, not from cron. It is a work ok ?
 
Old 12-08-2003, 06:06 AM   #3
manojthakkar
LQ Newbie
 
Registered: Dec 2003
Posts: 12

Original Poster
Rep: Reputation: 0
does it have something to do with the var/spool/cron crontab.root file
this is what it says

@(#) $Revision: 72.1 $

This is a sample crontab file for the super-user.


log kernel diagnostic messages every 10 minutes
05,15,25,35,45,55 * * * * /usr/sbin/dmesg - >>/var/adm/messages

Sample nightly invocation of calendar. If you wish to run calendar,
just uncomment the next line.
0 4 * * * exec /usr/bin/calendar -


is there a way to findout which script is a problem as i have 4-5 scripts running
and i can't run each of them right away there are some backup scripts also
 
Old 12-09-2003, 03:41 AM   #4
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Aaa.
You need search in /etc/cron.d /etc/cron.daily /etc/cron.montly /etc/cron.weekly
depends on your distribution.
 
Old 12-09-2003, 04:21 AM   #5
manojthakkar
LQ Newbie
 
Registered: Dec 2003
Posts: 12

Original Poster
Rep: Reputation: 0
there is nothing like /etc/cron.d or etc/cron.daily............ it only have a cron exeutable file actually its HPUX11.0
 
Old 12-09-2003, 10:54 AM   #6
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Hi manoj,

You say that you're using HP UX....I dont know if crontabs have different format in HP UX, but In Red Hat 9, this is not the correct format....

The format in Red Hat is

Minutes Hour DayOfMonth Month DayOfWeek Command

So a sample crontab can be

30 4 * * * /usr/bin/dmesg

(That means every day at 4:30 am, run the command 'dmesg'. So there are only 6 fields in a crontab file in Red Hat Linux. If HP UX has a similar format then take a look at your crontab file:


This is a sample crontab file for the super-user.


log kernel diagnostic messages every 10 minutes
05,15,25,35,45,55 * * * * /usr/sbin/dmesg - >>/var/adm/messages


The line below matches more with the Red Hat format

Sample nightly invocation of calendar. If you wish to run calendar,
just uncomment the next line.
0 4 * * * exec /usr/bin/calendar

The line in bold is not correct unless HP UX follows a different format then Red Hat...so check the format of the command.

Also, check if users have execute permissions to their home directories set properly, otherwise, you wont be able to run a script that resides in the user's home directory.

Regards,

amit
 
Old 12-09-2003, 11:01 AM   #7
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
just a correction...the line in bold is correct as u r running the script every 10 minutes...

In that case check for the permissions for the user's home directories...Let see if we can pick up something thats causing the error...

You can also check if the user for which these cron jobs are being executed is not mentioned in the file

/etc/cron.deny

Regards,

amit
 
Old 12-09-2003, 11:55 PM   #8
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
If we speak about hp-ux, not linux that
man cron and check this files and dirs
FILES
/var/adm/cron Main cron directory
/var/spool/cron/atjobs Directory containing at and batch job files
/var/spool/cron/crontabs Directory containing crontab files
/var/adm/cron/log Accounting information
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing problem while configuring OpenLDAP server shanu Linux - Software 1 03-13-2005 04:51 PM
iam facing problem with asterisk Jimmy911 Fedora 0 03-07-2005 08:17 AM
facing problem while patching kernel bhupee Linux - Networking 0 06-24-2004 11:32 AM
thre's a problem facing me in the openoffice reaky Linux - Software 2 10-23-2003 05:49 AM
Problem facing on setup ADSL connection leeswen Linux - Hardware 0 10-01-2003 08:56 AM


All times are GMT -5. The time now is 03:44 AM.

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