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.

Recommended Answers

All 2 Replies

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...

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.