Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 28573 invoked from network); 6 Jun 2008 11:08:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 11:08:37 -0000 Received: (qmail 65356 invoked by uid 500); 6 Jun 2008 11:08:40 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 64948 invoked by uid 500); 6 Jun 2008 11:08:38 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 64937 invoked by uid 99); 6 Jun 2008 11:08:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 04:08:38 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=EXTRA_MPART_TYPE,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dergill@cisco.com designates 144.254.224.140 as permitted sender) Received: from [144.254.224.140] (HELO ams-iport-1.cisco.com) (144.254.224.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 11:07:46 +0000 X-IronPort-AV: E=Sophos;i="4.27,600,1204498800"; d="gif'147?scan'147,208,217,147";a="10962588" Received: from ams-dkim-1.cisco.com ([144.254.224.138]) by ams-iport-1.cisco.com with ESMTP; 06 Jun 2008 13:07:55 +0200 Received: from ams-core-1.cisco.com (ams-core-1.cisco.com [144.254.224.150]) by ams-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id m56B7rBR032753 for ; Fri, 6 Jun 2008 13:07:53 +0200 Received: from xbh-ams-331.emea.cisco.com (xbh-ams-331.cisco.com [144.254.231.71]) by ams-core-1.cisco.com (8.13.8/8.13.8) with ESMTP id m56B7rtg001198 for ; Fri, 6 Jun 2008 11:07:53 GMT Received: from xmb-ams-33a.cisco.com ([144.254.231.85]) by xbh-ams-331.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 6 Jun 2008 13:07:53 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="----_=_NextPart_001_01C8C7C5.90A61BBC" Subject: redirect script output to Jmeter listener Date: Fri, 6 Jun 2008 13:07:52 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: redirect script output to Jmeter listener Thread-Index: AcjHxaJYuPoYi+AlRtOu4f2fui9ISg== From: "Derek Gill (dergill)" To: "JMeter Users List" X-OriginalArrivalTime: 06 Jun 2008 11:07:53.0272 (UTC) FILETIME=[90D98B80:01C8C7C5] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=8253; t=1212750473; x=1213614473; c=relaxed/simple; s=amsdkim1002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=dergill@cisco.com; z=From:=20=22Derek=20Gill=20(dergill)=22=20 |Subject:=20redirect=20script=20output=20to=20Jmeter=20list ener |Sender:=20; bh=NRRafemjOQsTg+EX/Ce4ubgP/V08h5j1sZF5kX2LqOc=; b=cZCQrAEE0l3ObfBmNs6lWbAbyfjQ1So0UAi9TaKuQBah+LfNOZhaEAGLKO m0zWtlK/fBvXvY9eU6e7yThLPkRMhlNPTEDnJjvKSMIHw5MgGSmkUAuSqGWS NA14J7Ktva; Authentication-Results: ams-dkim-1; header.From=dergill@cisco.com; dkim=pass ( sig from cisco.com/amsdkim1002 verified; ); X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8C7C5.90A61BBC Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C8C7C5.90A61BBC" ------_=_NextPart_002_01C8C7C5.90A61BBC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 Hi,=20 =20 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. =20 Typically I launch the script as follows from the bean shell: =20 import java.util; import java.lang; =20 String test_script =3D "/usr/bin/perl /root/test.pl \"select count(*) = from CLIENTSESSIONS;\""; Runtime currentruntime =3D Runtime.getRuntime(); Process testingprocess =3D currentruntime.exec(test_script); testingprocess.waitFor(); =20 Thanks, Derek. =09 Derek Gill Software Test Engineer IP Communications.=20 dergill@cisco.com Phone :+353 91 384650 Cisco Internetworking Ltd., Block 10, Galway Technology Park, Parkmore, Galway, Ireland. www.cisco.com =20 =09 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.=09 =20 ------_=_NextPart_002_01C8C7C5.90A61BBC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 
Hi,=20
 
I have = a number of=20 Perl scripts I launch using the beanshell sampler.  The Perl = scripts=20 generally do some remote logging and print general information from a = database=20 running on a remote server.  Is there anyway that I can pipe the = output of=20 the Perl script so that it is caught in my Jmeter listener.  I can = see that=20 it is possible to catch the the Perl script return value in the = listener, but I=20 can't see if it is even possible to pipe the entire script output back = into the=20 Jmeter listener.
 
Typically I launch=20 the script as follows from the bean shell:
 
import = java.util;
import java.lang;
 
String = test_script =3D=20 "/usr/bin/perl /root/test.pl \"select count(*) from=20 CLIENTSESSIONS;\"";
Runtime currentruntime =3D = Runtime.getRuntime();
Process=20 testingprocess =3D=20 currentruntime.exec(test_script);
testingprocess.waitFor();
 
Thanks,
Derek.
Derek=20 Gill
Software Test=20 Engineer
IP Communications.=20

dergill@cisco.com
Phone=20 :+353 91 384650

Cisco=20 Internetworking Ltd.,
Block 10,
Galway = Technology=20 Park,
Parkmore,
Galway,
Ireland.
www.cisco.com

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