Tuesday, 15 May 2012

python - Running a background process on Windows 7/XP -



python - Running a background process on Windows 7/XP -

i in process of developing application using python needs able run on both windows 7 , xp. application takes simple inputs buttons on ui , based on selections needs modify numbers , either upload them website or add together them queue uploaded later.

my problem need process modifies numbers , uploading run in background. inexperienced @ programming i'm not sure how it. best way accomplish this?

edit: sorry don't think clear. making run in background having problem doing. need background process run until command given stop. working steady stream of input numbers modifying , uploading 1 @ time.

for utilize on both operating systems suggest using py2exe. python 2.7 64bit compiled scripts work on windows xp machines, guess should work.

how wish upload these numbers homepage, via form or via ftp, should easier. assuming, file @ http://example.com/testfile.php, open file urllib:

import urllib urllib.urlopen("http://example.com/testfile.php?number1=20&number2=100")

if want upload numbers via ftp, suggest using ftplib, standard ftp-library built in python.

edit: forgot mention run in separate thread:

import thread thread.start_new_thread(upload_function()) #using upload-process in new function

python windows-7 windows-xp background-process

No comments:

Post a Comment