473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Running script in background.

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

Jul 19 '05 #1
3 2254
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

Harlin Seritt wrote:
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

Jul 19 '05 #2
Harlin Seritt wrote:
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.
Jul 19 '05 #3
Larry Bates wrote:
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
Jul 19 '05 #4

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

Similar topics

8
by: Sticks | last post by:
ok... im not quite sure how to describe my problem. i have a php script that runs through my entire php site and writes the resulting output to html files. this is necessary as the nature of the...
7
by: Arun | last post by:
Hi, This is a scripting question, but since I am writing the script in python I am posting this question here: I have a python script that runs a simulator (that was written in c++, so I use...
2
by: Lord Merlin | last post by:
Hi there Can someone please tell me how to run a script in the background? I have a stored procedure, which gathers a lot of info on various tables in a MSSQL , and from that rebulds a large...
5
by: Ben Dewey | last post by:
This is a repost, But I have some new information. I have a server that is configured for .NET 1.1 and 2.0. For some reason all my postback events for aren't firing when using .NET 1.1. Under...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
2
by: Dave Hughes | last post by:
Just noticed something rather annoying after upgrading my test box (a Linux server running DB2 UDB v8 for LUW) to fixpak 11 (for reference it was previously on fixpak 7). In the past I've relied...
13
by: wattersmt | last post by:
Hello, I am trying to write a python cgi that calls a script over ssh, the problem is the script takes a very long time to execute so Apache makes the CGI time out and I never see any output. ...
5
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() -...
5
by: camphor | last post by:
hi, I have found an upload script in hotscripts and have implemented it into the website, I followed the installation steps to 'give write permissions to php on the upload folder (which is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.