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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED] > 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:
[EMAIL PROTECTED]
> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >
> >
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to