cancel
Showing results for 
Search instead for 
Did you mean: 

Cron Job execution error

Cron Job execution error

I have set a cron job , The job is running fine manually , & even through cron it get executed successfully. however some time This gets failed with following error in log file.

(root) MAIL (mailed 23 bytes of output but got status 0x004e )

Could some one tell me what is this & why this is happening some time

OS is Linux AS 2.4
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Cron Job execution error

Shalom,

Check the /var/log/maillog file for that time for further errors.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: Cron Job execution error

I am getting following error in mail log file

Aug 19 04:02:01 lewis sendmail[767]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
skt_skt
Honored Contributor

Re: Cron Job execution error

check the permission.( what i am giving is from RHEL AS4/U4; same for RHEL AS3/U8)

# ls -ld /var/spool/mqueue
drwx------ 2 root mail 266240 Aug 22 23:30 /var/spool/mqueue


# ls -ld /var/spool/clientmqueue
drwxrwx--- 2 smmsp smmsp 4096 Aug 22 23:30 /var/spool/clientmqueue