Oh, thought I would provide an explanation of my problem, just so people
know.
The full command was:
sflwl -hlwl.fourmilab.ch:2076 '[EMAIL PROTECTED]'
The argument to sflwl being
1. -hlwl.fourmilab.ch:2076
2. [EMAIL PROTECTED]
Which of course works fine in the shell. However; I was using the
single argument form of Runtime.exec(String command), and this was
passing in the quotes too. So the arguments to sflwl when run under Java
were:
1. -hlwl.fourmilab.ch:2076
2. '[EMAIL PROTECTED]'
And of course the command failed to produce any output, because no one
with that email address existed on the server (must be an exact match).
I had actually tried the array version, exec(String cmd[]), but that
failed to produce the right output since the args to sflwl became (it
appears to perform a splilt on the ':'):
1. -hlwl.fourmilab.ch
2. 2076
3. [EMAIL PROTECTED]
Anyway, so there is my solution. As I emailed to some other kind person
who was attemptin to help me: Live and learn.
So this must mean that the VM does not use the *nix shell in order to
exec() commands? (forgive the question, I've not looked at the JVM
source)
Neil
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]