Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 61620 invoked from network); 21 Aug 2006 19:23:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2006 19:23:32 -0000 Received: (qmail 44688 invoked by uid 500); 21 Aug 2006 19:23:30 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 44656 invoked by uid 500); 21 Aug 2006 19:23:30 -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 44645 invoked by uid 99); 21 Aug 2006 19:23:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 12:23:30 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.179.116] (HELO web35407.mail.mud.yahoo.com) (66.163.179.116) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 Aug 2006 12:23:28 -0700 Received: (qmail 20397 invoked by uid 60001); 21 Aug 2006 19:23:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rlNZFl2sVqrZ1ZH2tk3MKFgI4+ua3CvOxhB+pMl0jptRcjiHXdKuCDkIlqY0qbPZcVK8501eVffpSQQUZ5F1FKSDsZMGLhwxt/I5QHFXBd9fZYNSblVEWLYXfvvZtkzThOSBy+Nh9SSrt4u+9wMt6+DtypfBRcQJ0829nVBe47o= ; Message-ID: <20060821192308.20395.qmail@web35407.mail.mud.yahoo.com> Received: from [198.60.24.129] by web35407.mail.mud.yahoo.com via HTTP; Mon, 21 Aug 2006 12:23:08 PDT Date: Mon, 21 Aug 2006 12:23:08 -0700 (PDT) From: Alec Swan Subject: Re: JMeter extensions To: JMeter Users List , Daman Jawda In-Reply-To: <25aac9fc0608210825n3af6c21et55f0300532394ae0@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-695532442-1156188188=:19286" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-695532442-1156188188=:19286 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I just tried print(), System.out.println(..) and System.err.println(). All of them print messages to the jmeter.bat console, but not in jmeter.log. However, I can't find where messages from exec("java -version") get printed out. Do I need to enable logging for beanshell in jmeter.properties? sebb wrote: Java on Linux should work in the same way as far as stdout and stderr are concerned. Try: print("test message"); in BeanShell - that will be written to stdout. If that appears, but the output from exec() does not, then perhaps the exec output is not being written to stdout. You can also try the following in BeanShell: System.out.println("stdout"); System.err.println("stderr"); and see where they go. On 21/08/06, Daman Jawda wrote: > Yes Unfortunately I run jmeter in linux - if stdout would indeed appear on > my shell , even though i invoke jmeter with an ampersand at the end, I > should check the shell for the output of scripts invoked using beanshell > exec() call in jmeter. But I don't recall seeing any such output on the > shell since I often go back to the shell while jmeter is running. > > Hmmm. > Without this output my test script would be useless. > > > > On 8/20/06, sebb wrote: > > JMeter does not change stdout or stderr, so it will appear in the > > command-line console used to start JMeter (unless you used javaw, in > > which case I'm not sure where stdout goes - it may be thrown away). > > > > The same would apply if you wrote your own sampler in Java. > > > > On 20/08/06, Jaw Dat wrote: > > > On Sat, 2006-08-19 at 00:23 +0100, sebb wrote: > > > > > > > The BeanShell Sampler can execute a command-line. > > > > > > > > I think it is as simple as > > > > > > > > exec("command-line"); > > > > > > > > > > Where do we see the output from this command-line command? Where to look > > > for the stdout output from such a command called with exec() ?????? > > > Thanks. > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > jmeter-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: > jmeter-user-help@jakarta.apache.org > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org --0-695532442-1156188188=:19286--