cron error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cron error
# 1  
Old 11-10-2011
cron error

Hi all,

I am brand new in linux and not sure where to post this i posted it also on debian but i think this place would have been better. I have a cron log error which i am trying to locate if anyone has any ideas that would be really appreciated


Code:
 ################### Logwatch 7.3.6 (05/19/07) #################### 
        Processing Initiated: Thu Nov 10 06:25:26 2011
        Date Range Processed: yesterday
                              ( 2011-Nov-09 )
                              Period is day.
        Detail Level of Output: 0
        Type of Output/Format: mail / text
        Logfiles for Host: jupiter
  ################################################################## 
 
 --------------------- Cron Begin ------------------------ 

 Errors when running cron:
    grandchild #9218 failed with exit status 1: 2 Time(s)
 
 ---------------------- Cron End -------------------------

thanks in advance i tried googling the error number but no luck i am tasked to just locate where the error is coming from

thanks again

Moderator's Comments:
Mod Comment Video Tutorial on Code Tags in the UNIX and Linux Forums

Last edited by pludi; 11-10-2011 at 02:29 PM..
# 2  
Old 11-10-2011
Have you checked crond log file: /var/log/cron?

To do this you will need root privileges!
# 3  
Old 11-10-2011
ya i see the error in the cron.log

Nov 10 06:33:40 jupiter /USR/SBIN/CRON[22709]: (CRON) error (grandchild #22710 failed with exit status 1)
# 4  
Old 11-10-2011
Check this link if it helps you: The light of the LAMP...: CRON error: grandchild failed with exit status 1 [Solution]

Also have you checked:
-----> Permissions on files, directories;
-----> If the script is correctly written, paths?
-----> Isn't it an error in your job? Have you checked the log file of your job?
-----> What does the script do? and has it ever worked with cron?

You can create a simple script and put it to run through cron:
Code:
# cat ./testCron.sh
#!/bin/sh
echo "[$$] Sleeping 10 secs..."
sleep 10 
echo "[$$] Done."

And put it to run in cron this way:
Code:
<PathToScript>/testCron.sh > <PathToScript>/testCron.log


Last edited by felipe.vinturin; 11-10-2011 at 02:56 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help please error cron

Hi all, I write from 'Italy (sorry for my english) I have a joomla site, some days I get an error with cronjobs I do not know how to fix it (I'm not an expert) I kindly ask you to help you who are more experienced the error is this: Status: 403 Forbidden Set-Cookie: =... (1 Reply)
Discussion started by: arredoannunci
1 Replies

2. Debian

cron error

Hi all, I am brand new in linux and i have a cron lon error which i am trying to locate if anyone has any ideas that would be really appreciated ################### Logwatch 7.3.6 (05/19/07) #################### Processing Initiated: Thu Nov 10 06:25:26 2011 Date Range... (0 Replies)
Discussion started by: stav40
0 Replies

3. Shell Programming and Scripting

Cron error

I am running the following cron job: SHELL=/usr/bin/ksh; export SHELL; . $HOME/.profile; xxx.sh > xxx.out 2>&1 and I am getting mail with the folloinwg message mailed to me when I login as this user: stty: tcgetattr: Not a typewriter I am running on an AIX 6.1 machine oslevel -s... (4 Replies)
Discussion started by: BeefStu
4 Replies

4. UNIX for Dummies Questions & Answers

cron output error

I am attempting to run a cron job, however, I receive this cron output error: Error: of parameter : xxxxx does not make a valid output file. What causes this? (4 Replies)
Discussion started by: AM1234
4 Replies

5. Shell Programming and Scripting

cron job error

HI am having a script file which is ok if i run from the server manually like <root@hostname:/space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount > /space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount.txt the... (2 Replies)
Discussion started by: aemunathan
2 Replies

6. Shell Programming and Scripting

Error in cron job;

Hi All, please help me out with this problem. While running my mail_out_original.ksh in CRT window, it disconnects from the server saying not connected Here is my code : (please see the attachment) ____________________________________________________________ #!/bin/ksh ## Load... (1 Reply)
Discussion started by: shruthinagaraj
1 Replies

7. Shell Programming and Scripting

cron entry error

I am using the following cron entry to run a cron job every 4 hours and it is rejecting it: 0 */4 * * * /home/location/scriptname When I put this entry in cron is errors with: 0481-079 reached a symbol that is not expected. This is an AIX 5.3 system Any ideas? Thanks (6 Replies)
Discussion started by: capeme
6 Replies

8. UNIX for Dummies Questions & Answers

cron error

I am using the following cron entry to run a cron job every 4 hours and it is rejecting it: 0 */4 * * * /home/location/scriptname When I put this entry in cron is errors with: 0481-079 reached a symbol that is not expected. This is an AIX 5.3 system Any ideas? Thanks (4 Replies)
Discussion started by: capeme
4 Replies

9. Filesystems, Disks and Memory

mmap error - only when from cron?!?!?

Hey Guys, Ive got a script which when run from the command prompt works exactly as planned. However when this script is scheduled to run from the crontab (using the same user ID) it brings up a series of mmap errors... + /opt/cobol/bin/rebuild /cybtirl/data/file02 -k:4+32 -e -i -v Error... (1 Reply)
Discussion started by: Bicks
1 Replies

10. UNIX for Dummies Questions & Answers

Script/cron error

I am running a script through cron but keep getting this message in unix mail: Subject: cron Not a terminal stty: : Not a typewriter stty: : Not a typewriter logout The script appears to run successfully. Any ideas what this message is and how I can stop it? (1 Reply)
Discussion started by: Bab00shka
1 Replies
Login or Register to Ask a Question