0

Hi, I am trying to schedule a python compiled file to run using windows scheduler. But it does'nt run successfully

The script writes to a SQL server database installed on the same machine as python and the script resides on the same machine.
The script imports the urllib, sys, threading, datetime, optparse, csv & odbc modules.

What am I missing?

Thanks.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by dp_neo
0

Well ... you have to give us something!!!
the error message u get for a start....

Does ur scheduler start the script in the first place??

I had a similar problem once. I didn't include the Run as username in the scheduler...:$

So jus let us know what u get...

0

Nevermind,
I figured out my mistake. I am new to python so I was compiling the script the wrong way by saving it as .pyc file.
I compiled the script using the py_compile module and everything works fine now.

Thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.