473,383 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Pycron for windows - please help

Al
Hey all,

I'm using Pycron for windows to run 5 scripts at various times of
the day, all of which work well.

I recently added a 6th job, a simply file copy operation, and it won't
run. Once the job is configured, I click the test execution button,
and it works fine. However, it won't run automatically.

I looked in the pycron.log file, and I noticed that for the entires of
my new job, I see "rc=4" and the end of each line. All other jobs have
"rc=0" at the end of the line. I assume then, that rc=4 is a reference
to an error code of some kind, but there is no information on this in
the readme.txt, at the pycron website, or here in groups.

Does anyone know how to troubleshhot this? Thanks in advance.

Al

Mar 19 '07 #1
6 6841
En Mon, 19 Mar 2007 16:00:04 -0300, Al <be*****@gmail.comescribió:
I looked in the pycron.log file, and I noticed that for the entires of
my new job, I see "rc=4" and the end of each line. All other jobs have
"rc=0" at the end of the line. I assume then, that rc=4 is a reference
to an error code of some kind, but there is no information on this in
the readme.txt, at the pycron website, or here in groups.

Does anyone know how to troubleshhot this? Thanks in advance.
Contacting the author?

--
Gabriel Genellina

Mar 19 '07 #2
Al
heh... didn't think about that... thanks.

Mar 20 '07 #3
Here's something else you should consider: Look at the source code of
pycron. I just downloaded it. Much to my surprise, this is implemented
in about 115 lines of code.

In particular, look at the run() function. You should try adding a
try-except block around the system call to get a hint as to where the
problem lies:
try:
os.system('start ' + command)

except:

print "Unexpected error to catch:",
sys.exc_info()[0]
I've been trying to use it myself (on a Mac) since I saw you mention it
on the mailing list. I'm also having problems using pycron. Email me
directly if you figure out the problem. I'll do the same for you.

Gabriel Genellina wrote:
En Mon, 19 Mar 2007 16:00:04 -0300, Al <be*****@gmail.comescribió:

>I looked in the pycron.log file, and I noticed that for the entires of
my new job, I see "rc=4" and the end of each line. All other jobs have
"rc=0" at the end of the line. I assume then, that rc=4 is a reference
to an error code of some kind, but there is no information on this in
the readme.txt, at the pycron website, or here in groups.

Does anyone know how to troubleshhot this? Thanks in advance.

Contacting the author?

--
Shane Geiger
IT Director
National Council on Economic Education
sg*****@ncee.net | 402-438-8958 | http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy
Mar 20 '07 #4
Al
Shane,

I figured it out... Pycron does not work with mapped drives. My
script was supposed to copy files from a mapped drive to a local
folder... I had set up my batch command as copy M:\foldername\*.*,
where M: is a mapped drive pointing to the network share; M: is
defined on the PC running the Pycron service of course. I changed it
to read copy \\servername\shares\foldername\*.* and now everything
works correctly.

Al

Mar 25 '07 #5
En Sun, 25 Mar 2007 10:17:47 -0300, Al <be*****@gmail.comescribió:
I figured it out... Pycron does not work with mapped drives. My
script was supposed to copy files from a mapped drive to a local
folder... I had set up my batch command as copy M:\foldername\*.*,
where M: is a mapped drive pointing to the network share; M: is
defined on the PC running the Pycron service of course. I changed it
to read copy \\servername\shares\foldername\*.* and now everything
works correctly.
Mapped drives are per-user. Usually, services run under the LOCAL_SYSTEM
account, not using the currently logged user (because they may start even
before any user is logged). If you want the service to have access to your
mapped drives, use the service control panel to make it run under another
account.

--
Gabriel Genellina

Mar 25 '07 #6
Al
Mapped drives are per-user. Usually, services run under the LOCAL_SYSTEM
account, not using the currently logged user (because they may start even
before any user is logged). If you want the service to have access to your
mapped drives, use the service control panel to make it run under another
account.
Pycron runs under our domain admin account, and the computer on which
it runs is always on. I tried changing the account anyway, but no luck.

Mar 26 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
1
by: Scott Chang | last post by:
Hi all, 1)I used Microsoft Visual C++.NET (2002) on my Windows Me and Windows XP Home Edition for the last one and half years. 4-5 weeks ago, I upgraded my PC from Windows XP Home Edition to...
0
by: dicky2283 | last post by:
windows development community please help me im deepak roy , doing my final year undergrad in computer science.... im doing a project - Motion detection and Tracking in vc++( video for...
10
by: Ger | last post by:
I am having problems using VB.Net's Management base object on a machine hosting Windows Server 2003. I am trying to set file permissions from a Windows Service. These files may be loacted on a...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
5
by: sajin | last post by:
Hi All.. We are using VB .Net 2005 for implementing an API. API needs to generate events. For this client wants us to use Windows Callback (delegate implementation). The intention of using...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.