Running script in background.

H

Harlin Seritt

Hi,

I have a script.py that is converted to .exe using py2exe. From another
script I call script.exe and would like to be able to run this
script.exe in the background (as well as in console -- giving the user
some simple options). How can I make this happen?

thanks,

Harlin
 
L

Larry Bates

You have two choices:

1) You can use Windows Scheduler to run the script in the
background. I have lots of scripts that I do this with.

2) You can convert the script into a Windows Service, which
will run in the background continuously.

I know of no way to manually start something in the foreground
and have it execute in the background (unlike on Linux).

Larry Bates
 
N

Nick Addison

Harlin said:
Hi,

I have a script.py that is converted to .exe using py2exe. From another
script I call script.exe and would like to be able to run this
script.exe in the background (as well as in console -- giving the user
some simple options). How can I make this happen?

thanks,

Harlin
Have you considered running the exe as a scheduled job? Or you could
turn it into an NT service. I run quite a few py2exe exes as scheduled
jobs set up as run once on system start up.

hth

Nick.
 
P

Peter Hansen

Larry said:
You have two choices:

1) You can use Windows Scheduler to run the script in the
background. I have lots of scripts that I do this with.

2) You can convert the script into a Windows Service, which
will run in the background continuously.

I know of no way to manually start something in the foreground
and have it execute in the background (unlike on Linux).

Depending on your definition of "background", the "START" command in
Windows is one way of doing precisely that. START /? for help...

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,237
Messages
2,571,190
Members
47,827
Latest member
wyton

Latest Threads

Top