jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Gill (dergill)" <>
Subject redirect script output to Jmeter listener
Date Fri, 06 Jun 2008 11:07:52 GMT
I have a number of Perl scripts I launch using the beanshell sampler.
The Perl scripts generally do some remote logging and print general
information from a database running on a remote server.  Is there anyway
that I can pipe the output of the Perl script so that it is caught in my
Jmeter listener.  I can see that it is possible to catch the the Perl
script return value in the listener, but I can't see if it is even
possible to pipe the entire script output back into the Jmeter listener.
Typically I launch the script as follows from the bean shell:
import java.util;
import java.lang;
String test_script = "/usr/bin/perl /root/ \"select count(*) from
Runtime currentruntime = Runtime.getRuntime();
Process testingprocess = currentruntime.exec(test_script);
Derek Gill
Software Test Engineer
IP Communications.
Phone :+353 91 384650

Cisco Internetworking Ltd.,
Block 10,
Galway Technology Park,
Ireland. <> 

This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.	


  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message