Hi Everyone,
I am trying to do an MQ inquiry but I am having mixed results.
If I do the command direct via a print statement like the one below, it
works,
print 'Queue Description:\t' , q.inquire(CMQC.MQCA_Q_DESC)
When I try to cycle through an array of command line supplied keys, it
fails.
while counter < arg_array_size:
arg1=valid_keys[sys.argv[counter]]
arg2 = 'q.inquire(CMQC.'+valid_keys[sys.argv[counter]]+')'
print arg1," ",arg2
counter = counter +1
Variable arg1 successfully mines the dictionary to return the key it is
looking for.
Variable arg2 successfully forms the q command like you see in the print
statement above.
When I do the print statement, the value of arg2 is printed instead of
being executed.
Does anyone know how to get around this problem?
Thank you,
Andrew Robert
Systems Architect
Information Technologies
MFS Investment Management
Phone: 617-954-5882
Pager: 781-945-1742
E-mail: [EMAIL PROTECTED]
Linux User Number: #201204
"MFS Relay Service" made the following
annotations on 04/13/2005 11:02:45 AM
------------------------------------------------------------------------------
This email communication and any attachments may contain proprietary,
confidential, or privileged information. If you are not the intended
recipient, you are hereby notified that you have received this email in error
and that any review, disclosure, dissemination, distribution or copying of it
or its contents is prohibited. The sender does not waive confidentiality or
any privilege by mistransmission. If you have received this email in error,
please notify the sender immediately, delete this email, and destroy all copies
and any attachments.
==============================================================================
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor