Does anyone know how to properly kick off a script using Windows
Import os and add os.system("paus e") at the end of AutomatedTestRu n.py
to keep cmd open.
As far as not seeing any output, I haven't had any trouble with that
before. Maybe you're doing something unusual?
Have you tried using the logging module, rather than print? Might be
more useful for what you're trying to do.
Cheers,
Drea
Scheduled Task? The script calls other python modules within itself.
HERE'S THE CATCH:
I am used to running the script directly from the command window and
the print() is very handy for us to debug and monitor. When running
the task from Windows Scheduled Task, we'd like to be able to view the
command window and keep it up after the Task has completed...
I used the commands
CMD /K
cd C:\testdirector y\script_RunTes ts
python AutomatedTestRu n.py
but when AutomatedTestRu n.py calls other python modules, we don't see
output.
HERE'S THE CATCH:
I am used to running the script directly from the command window and
the print() is very handy for us to debug and monitor. When running
the task from Windows Scheduled Task, we'd like to be able to view the
command window and keep it up after the Task has completed...
I used the commands
CMD /K
cd C:\testdirector y\script_RunTes ts
python AutomatedTestRu n.py
but when AutomatedTestRu n.py calls other python modules, we don't see
output.
to keep cmd open.
As far as not seeing any output, I haven't had any trouble with that
before. Maybe you're doing something unusual?
Have you tried using the logging module, rather than print? Might be
more useful for what you're trying to do.
Cheers,
Drea