ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MH05 in CRONTAB raising an error

Post new topic  Reply to topic Goto page Previous  1, 2
 MH05 in CRONTAB raising an error « View previous topic :: View next topic » 
Author Message
belchman
PostPosted: Tue May 12, 2015 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
belchman
PostPosted: Tue May 12, 2015 4:20 am    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Tue May 12, 2015 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
belchman
PostPosted: Wed May 13, 2015 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » MH05 in CRONTAB raising an error
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.