473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

trying to login JMS using perl and execute commands

154 100+
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:7220>] [<>] [<>]****


This is what I tried so far:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2. #Date: Mar-09-2007
  3. #Purpose: Monitor JMS server
  4.  
  5. chdir "d:/tibco/ems/bin/tibjmsadmin.exe";
  6.  
  7. system "connect [<tcp://192.45.63.132:7220>] [<>] [<>]";
  8.  
  9. print "Enter command:"; 
  10. <STDIN>
  11.  
  12.  
  13. open(OUTPUT ">output.txt") || die ("Error opening file  $!");
  14.  
  15. print OUTPUT <STDIN>;
Mar 9 '07 #1
1 3544
KevinADC
4,059 Expert 2GB
first problem might be that you are trying to chdir to a program instead of a folder:

Expand|Select|Wrap|Line Numbers
  1. 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.
Mar 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Bob | last post by:
why is perl referred to as a CGI script and not php, php has the facility to execute backticked execute commands that enable the programmer to use operating system facilities as well ? why...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
4
by: David A. Ulevitch | last post by:
Hi fellow pgsql users, I am helping my university's student union get back up and running after some major server issues they had. They had serious disk issues on a server, but not on the /var...
1
by: bobano | last post by:
Hi everyone, I am writing a POP3 Client program in Perl. You connect to a POP3 Server and have a running conversation with the mail server using commands from the RFC 1939 Post Office Protocol....
1
by: Pravin | last post by:
HI all can anyone help me, i want to use some shell commands in perl script which is not possible can any one instruct me how to execute shell commands in perl script like ls,grep,awk
4
by: Brant Sears | last post by:
Hi. I'm new to Python and I am trying to use the latest release (2.5) on Windows XP. What I want to do is execute a program and have the results of the execution assigned to a variable....
0
by: sandy | last post by:
hello,,,,,,,,, i am creating login page using Perl/CGI facing prob... able to connect DB but from there facing prob If u have related code of login page in Perl please send me on...
2
by: perlnewbie | last post by:
Hi everyone I am new to perl and I am writing a perl script to invoke a set of commands on UNIX clearcase vob however I am having trouble after setting the view and mounting the vob I want to change...
1
fetaelin
by: fetaelin | last post by:
Hi. I have may questions.. 1.can I have a perl script inside a bash script ? IF yes, please make an example. 2.can I use perl to connect via SSH to an other mashine (mashine2), rune some bash...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.