Re: Getting Python exit code when calling Python script from Java program

2008-06-18 Thread Gabriel Genellina
En Wed, 18 Jun 2008 08:09:58 -0300, A.T.Hofkamp <[EMAIL PROTECTED]> escribió: On 2008-06-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: picking up 0. On investigation it turned out that the exit value being read is from python.exe process, not from the Python script. Is there any way I can

Re: Getting Python exit code when calling Python script from Java program

2008-06-18 Thread Matthew Woodcraft
In article <[EMAIL PROTECTED]>, > I tried using the sys.exit() method in my script and passed non -zero > values. However the value wasn't picked up the by Java > Process.exitValue() method - it kept picking up 0. On investigation > it turned out that the exit value being read is from python.exe >

Re: Getting Python exit code when calling Python script from Java program

2008-06-18 Thread A.T.Hofkamp
On 2008-06-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a Python script which is used to load data into a database. Up to > now this script has been run by customers from the Windows command > prompt using "python edg_loader.pyc". Any error messages generated are > written to a log fil

Re: Getting Python exit code when calling Python script from Java program

2008-06-18 Thread Lie
On Jun 18, 3:54 pm, [EMAIL PROTECTED] wrote: > I have a Python script which is used to load data into a database. Up to > now this script has been run by customers from the Windows command > prompt using "python edg_loader.pyc". Any error messages generated are > written to a log file.  A project t