[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Python script output.



Hi,

Take out the word python from the .bat file. If you
were collecting your error stream you'd see the path
error generated by cmd.exe.

python is not on the path of the condor process
running your job.

Windows/cmd.exe will run a .py file with python.exe
without the "python".

OC
--- simon kagwe <simonkagwe@xxxxxxxxx> wrote:

> Hi,
> 
> I am submitting the following python
> script(test.py):
> # test.py
> print "ouput from python program successfully
> printed!!"
> print "finally!!"
> 
> using this description file:
> # test.condor
> 
> universe = vanilla
> executable = test.bat
> input = test.py
> output = test.out
> log = test.log
> 
> queue
> 
> The executable test.bat contains:
> echo "testing submit of python script..."
> python test.py
> 
> The job is run successfully. However, test.out only
> contains:
> "testing submit of python script..."
> 
> Why is the output from the python script not added
> to test.out? All machines in
> the pool have python installed and added to the path
> environment variable. Also,
> test.bat works perfectly when run directly on the
> command prompt. Please help.
> 
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to
> condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
>
https://lists.cs.wisc.edu/mailman/listinfo/condor-users
> 
> The archives can be found at: 
> https://lists.cs.wisc.edu/archive/condor-users/
> 



      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html