RE: Another Java Question

2002-12-10 Thread John Weatherman
Richard, Thanks, that got it. John P Weatherman Database Administrator Replacements Ltd. -Original Message- Sent: Monday, December 09, 2002 4:40 PM To: Multiple recipients of list ORACLE-L Runtime might not recognize Unix pipe, you need to do it like: Process p =

Another Java Question

2002-12-09 Thread John Weatherman
Good Morning. I am trying to get the output of a server process executed by java via Runtime.exec(). Here's the code: import java.sql.*; import java.io.*; public class ip { public static void main (String args []) { Runtime r = Runtime.getRuntime(); try { String sid = emsd;

RE: Another Java Question

2002-12-09 Thread Richard Ji
Runtime might not recognize Unix pipe, you need to do it like: Process p = Runtime.getRuntime().exec(new String[] {/bin/sh,-c, tnsping emsd | grep Host}); Richard Ji -Original Message- Sent: Monday, December 09, 2002 11:29 AM To: Multiple recipients of list ORACLE-L Good Morning. I