Re: Runtime.getRuntime().exec()
Re: Runtime.getRuntime().exec()
- Subject: Re: Runtime.getRuntime().exec()
- From: Wolfram Stebel <email@hidden>
- Date: Thu, 18 Aug 2005 09:03:13 +0200
Title: Re: Runtime.getRuntime().exec()
Am 18.08.2005 2:46 Uhr schrieb "George Domurot" unter <email@hidden>:
I'm attempting to call an executable from within WO. The command works
fine through the terminal, but not when called via WO. I can call basic
commands like "ls" without issue from within WO. I'm thinking there may
be a permission issue with executables.
Any pointers?
Thanks,
George
Dipl. Inform. Wolfram Stebel, bugs&errors
Flutgrabenstr. 19, 35576 Wetzlar
Tel. 06441/47633
Mailto:email@hidden
Web: www.bugs-and-errors.de
Why not logging the result. Then you will know more:
Process p = Runtime.getRuntime ().exec ( command );
if ( NSLog.debugLoggingAllowedForLevel ( NSLog.DebugLevelDetailed ) )
{
NSLog.out.appendln ( "process waiting " );
}
int terminated = p.waitFor ();
if ( NSLog.debugLoggingAllowedForLevel ( NSLog.DebugLevelDetailed ) )
{
NSLog.out.appendln ( "result: terminated (0=OK) : " + terminated );
BufferedReader in = new BufferedReader( new InputStreamReader ( p.getErrorStream () ) );
NSLog.out.appendln ( "error : " + in.readLine () );
}
Wolfram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden