Hi all, I have a 2.6 script here that works OK on Linux, I'm porting it to Windows and I cannot get all the output correctly being added to the log file.
Linux version runs like this: /opt/www/auto-update.py > /opt/www/autoupdate.log 2>&1 Windows version: auto-update.py >autoupdate.log 2>&1 The issue is with the output generated by subprocesses, which I execute like this: check_call(['net', 'stop', 'Apache Tomcat 6']) Nothing of the output of the previous command ends up in the log file, output of print commands is written to the log file correctly though. I had an issue on Linux, where output would come out of order so I had to run sys.stdout.flush after every print statement. If I run it from the command line everything gets displayed. Any idea? Cheers, Iker. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~---
