trying to login JMS using perl and execute commands

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jonathan184
    New Member
    • Nov 2006
    • 154

    trying to login JMS using perl and execute commands

    Hi I am trying to login a JMS admin tool and execute JMS commands and using perl windows to do this.
    This is the e.g of connection string they said to use when trying to connec to jms ****connect [<tcp://192.45.63.132:7 220>] [<>] [<>]****


    This is what I tried so far:

    Code:
    #!/usr/bin/perl
    #Date: Mar-09-2007
    #Purpose: Monitor JMS server
    
    chdir "d:/tibco/ems/bin/tibjmsadmin.exe";
    
    system "connect [<tcp://192.45.63.132:7220>] [<>] [<>]";
    
    print "Enter command:"; 
    <STDIN>
    
    
    open(OUTPUT ">output.txt") || die ("Error opening file  $!");
    
    print OUTPUT <STDIN>;
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    first problem might be that you are trying to chdir to a program instead of a folder:

    Code:
    chdir "d:/tibco/ems/bin/tibjmsadmin.exe";
    next might be the use of the <> brackets in the connection string. Often the <> brackets are used in examples to denote that a list or string goes there, but should not be used in the actual strings.

    Maybe someone else will have some suggestions.

    Comment

    Working...