AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

prendere l'exit code di un programma

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Stefano
Guest





PostPosted: Wed Mar 23, 2005 4:52 pm    Post subject: prendere l'exit code di un programma Reply with quote



Un saluto a tutti ringraziandovi anticipatamente del vostro aiuto.
Vorrei sapere come posso catturare in java l'exit code di un programma
mandato in esecuzione. Per mandarlo in esecuzione utilizzo le seguenti linee
di codice:

execute_command = (String)nxapp.nxPaths.get("winnt.local") + File.separator
+"nxclient.exe";
String[] commands = new String[]{ execute_command, "--session",
nxapp.nxClientPath + File.separator + fileName };
Process child = Runtime.getRuntime().exec(commands);

Io ho pensato di utilizzare child.exitValue() ma non so se è esatto.


Grazie
Stefano

--------------------------------
Inviato via http://arianna.libero.it/usenet/
Back to top
Vincent Vega
Guest





PostPosted: Wed Mar 23, 2005 5:09 pm    Post subject: Re: prendere l'exit code di un programma Reply with quote



Stefano wrote:

Quote:
Io ho pensato di utilizzare child.exitValue() ma non so se è esatto.

Cosa ti fa pensare che non lo sia?

Back to top
Stefano
Guest





PostPosted: Wed Mar 23, 2005 5:11 pm    Post subject: Re: prendere l'exit code di un programma Reply with quote



Il 23 Mar 2005, 18:09, Vincent Vega <vincent-vega (AT) despammed (DOT) com> ha scritto:
Quote:
Stefano wrote:

Io ho pensato di utilizzare child.exitValue() ma non so se è esatto.

Cosa ti fa pensare che non lo sia?

Ok grazie mille !!!!

:-)

--------------------------------
Inviato via http://arianna.libero.it/usenet/

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.