posted 19 years ago
Hi,
I am trying to execute a command from Java in linux, like this:
String cmd = ..... ;
Process x = Runtime.getRuntime().exec( cmd );
But my problem is I need to setup some shell variables for my Linux command?
How can I do that?
And I am running this Runtime.getRuntime().exec() in my own servlet.
Thank you for any tips.