|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MH05 in CRONTAB raising an error |
« View previous topic :: View next topic » |
Author |
Message
|
belchman |
Posted: Tue May 12, 2015 3:09 am Post subject: |
|
|
Partisan
Joined: 31 Mar 2006 Posts: 386 Location: Ohio, USA
|
fjb_saper and gbaddeley,
Thx. I will try your suggestions today. _________________ Make three correct guesses consecutively and you will establish a reputation as an expert. ~ Laurence J. Peter |
|
Back to top |
|
 |
belchman |
Posted: Tue May 12, 2015 4:20 am Post subject: |
|
|
Partisan
Joined: 31 Mar 2006 Posts: 386 Location: Ohio, USA
|
I applied what fjb_saper said and the "errors", "warnings" or whatever are still being written. I say warnings because I am getting the output I expect.
New Code
Quote: |
#!/usr/bin/ksh
source /home/mqm/.profile
export PATH=$PATH:/home/mqm/ev_mon/com.ibm.xmq.events-1.5.jar:/home/mqm/ev_mon
/home/mqm/ev_mon/mq_slm.sh SYSTEM.ADMIN.COMMAND.EVENT SYSTEM.ADMIN.CONFIG.EVENT |
I applied what glenn said and now I do not have the mail problem. The errors that were being written to mail are now being written to the log.
CRONTAB job entry
Quote: |
# Event Log Handler Beta
* * * * * /home/mqm/ev_mon/ev_mon.sh > /home/mqm/ev_mon/logs/ev_mon.cronlog 2>&1 |
Output in log
Quote: |
$ tail -f ev_mon.cronlog
/home/mqm/ev_mon/ev_mon.sh[2]: source: not found
Start Event Audit Run
/home/mqm/ev_mon/mq_slm.sh[41]: Xmqdspev: not found
Queue SYSTEM.ADMIN.COMMAND.EVENT handled
/home/mqm/ev_mon/mq_slm.sh[41]: Xmqdspev: not found
Queue SYSTEM.ADMIN.CONFIG.EVENT handled
End Event Audit Run |
This is not perfect but will do for now. The results I expect are being returned and I will not get dope slapped by a UNIX engineer when I fill up mail. _________________ Make three correct guesses consecutively and you will establish a reputation as an expert. ~ Laurence J. Peter |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue May 12, 2015 3:48 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Code: |
source /home/mqm/.profile |
It is failing because it can't find the "source" command. Can you try using a dot "." instead, to source mqm's logon profile:
Code: |
. /home/mqm/.profile |
Regarding the other error:
Code: |
/home/mqm/ev_mon/mq_slm.sh[41]: Xmqdspev: not found |
Check this script to ensure that its making valid use of Xmqdspev. This could be a misplaced or invalid syntax command argument? _________________ Glenn |
|
Back to top |
|
 |
belchman |
Posted: Wed May 13, 2015 3:08 am Post subject: |
|
|
Partisan
Joined: 31 Mar 2006 Posts: 386 Location: Ohio, USA
|
gbaddely,
You are a treasure trove of help. I used the dot instead of the word source and voila!
Quote: |
Start Event Audit Run
Date: Wed May 13 07:06:00 EDT 2015
Queue SYSTEM.ADMIN.COMMAND.EVENT handled
Queue SYSTEM.ADMIN.CONFIG.EVENT handled
Queue SYSTEM.ADMIN.QMGR.EVENT handled
End Event Audit Run |
Thanks much _________________ Make three correct guesses consecutively and you will establish a reputation as an expert. ~ Laurence J. Peter |
|
Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|