Re: trouble with Runtime.getRuntime().exec(cmd) on Linux

From: Carl (moc.erawtfosdigir_at_treblig_tnomal)
Date: 01/08/04

Date: Thu, 08 Jan 2004 09:40:01 -0500

JW wrote:
> Hi,
> I don't seem to get any results from the following use
> of Runtime.getRuntime().exec(cmd) using Java 1.4 on
> Redhat linux.

why dont you grab the input stream from the runtime you are using and
print that to your console. that way you can see the OS response to
your failed command.

you can look at the source code on, chessone
executes a program on the command line in linux. its been a while so I
dont remember how i did it, but its in the source code. probably unzip
the source and do a search on each file for the one containing the
getRuntime command...