471,350 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

return codes from os.spawn


When I try running java through os.spawnv with P_NOWAIT, it returns the
process id
>>os.spawnv(os.P_NOWAIT, '$JAVA_HOME/bin', ('java', '$JAVA_HOME/bin/java
ex3178 true'))

then I removed the command line parameter in the java command to fail ( it
should throw an exception) the process and ran it. This time also it
returned the process id .
>>os.spawnv(os.P_NOWAIT, '$JAVA_HOME/bin', ('java', '$JAVA_HOME/bin/java
And I tried the same by using P_WAIT and it returned the same exit code
>>os.spawnv(os.P_WAIT, '$JAVA_HOME/bin', ('java', '$JAVA_HOME/bin/java
ex3178 true))
>>os.spawnv(os.P_WAIT, '$JAVA_HOME/bin', ('java', '$JAVA_HOME/bin/java
please let me know how can we identify that the process is completed
successfully or not ?


Sep 17 '07 #1
0 1179

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by C Gillespie | last post: by
6 posts views Thread by Josh Mcfarlane | last post: by
16 posts views Thread by Fao, Sean | last post: by
3 posts views Thread by c# beginner | last post: by
5 posts views Thread by Paul Hasell | last post: by
3 posts views Thread by RdS | last post: by
3 posts views Thread by asearle | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.