473,408 Members | 2,161 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,408 software developers and data experts.

running background processes

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 table. I run this stored procedure like so:
Response.write "Updating CWC Page .... wait until you see <b>Finished!</b>"
dbconnection.CommandTimeout = 0
DBConnection.Execute("proc_updatecwc")
Response.write "<bR><BR>Finished!<BR><BR>"

The problem is, this script takes about 3 minutes to complete, and then I
can't do other stuff on the site. This script needs to be run at regular
intervals, whenever new company information is added. Now, I want to be able
to add the new info, and let the script run in the background, without
waiting for the outcome / output. Can this be done?

--

Kind Regards
Rudi Ahlers
+27 (82) 926 1689

Greater love has no one than this, that he lay down his life for his friends
(John 15:13).


Jul 19 '05 #1
2 1860
Lord Merlin wrote:
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 table. I run this
stored procedure like so: Response.write "Updating CWC Page .... wait
until you see <b>Finished!</b>" dbconnection.CommandTimeout = 0
DBConnection.Execute("proc_updatecwc")
Response.write "<bR><BR>Finished!<BR><BR>"

The problem is, this script takes about 3 minutes to complete, and
then I can't do other stuff on the site. This script needs to be run
at regular intervals, whenever new company information is added.
This is a contradiction. Either it needs to be run at regular intervals,
regardless of whether or not new company information has been added, or it
needs to be run on-demand, when new information is added.
Now,
I want to be able to add the new info, and let the script run in the
background, without waiting for the outcome / output. Can this be
done?


So you want it to be done on demand. Check out this article:
http://www.aspfaq.com/show.asp?id=2194

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
Hi Bob

Yes I know what your saying, and it sound funny. We run the script every now
and again, cause we don't know when other people add company info on the
site, thus we run it manually on a regular basis just to make sure it gets
run. But this is error prone, cause no one does it at night. Thanx for the
site, I'm looking at it now

--

Kind Regards
Rudi Ahlers
+27 (82) 926 1689

Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:Ov**************@TK2MSFTNGP11.phx.gbl...
Lord Merlin wrote:
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 table. I run this
stored procedure like so: Response.write "Updating CWC Page .... wait
until you see <b>Finished!</b>" dbconnection.CommandTimeout = 0
DBConnection.Execute("proc_updatecwc")
Response.write "<bR><BR>Finished!<BR><BR>"

The problem is, this script takes about 3 minutes to complete, and
then I can't do other stuff on the site. This script needs to be run
at regular intervals, whenever new company information is added.
This is a contradiction. Either it needs to be run at regular intervals,
regardless of whether or not new company information has been added, or it
needs to be run on-demand, when new information is added.
Now,
I want to be able to add the new info, and let the script run in the
background, without waiting for the outcome / output. Can this be
done?


So you want it to be done on demand. Check out this article:
http://www.aspfaq.com/show.asp?id=2194

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Jul 19 '05 #3

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

Similar topics

1
by: Manoj | last post by:
Hi, I want to know if it is possible to find out through a vb.net application which other applications are running in the background.For example as soon as i load my form I want it to check if a...
0
by: egkua | last post by:
I have two perl processes and I run them using nohup to run in the background. However there is a case where the 2nd program run 1st before the 1st program. How do I control it to have the 2nd...
1
by: Yoav | last post by:
I need to run multiple console apps in the background and to watch their output. I have no idea if this is possible, and I don't even know where to start looking. The processes are watchers,...
4
by: Amjad | last post by:
I have a program that updates an Excel sheet everytime the user presses a button. However, each time it creates a new instance of the Excel.exe application running in the background. I tried...
1
by: Jason E. Trout | last post by:
I wrote an applicaion in VB.NET that executes a process in the background using the System.Diagnostics namespace. It peforms as expected as an application. I rewrote the code into a Windows Service...
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...
11
by: news | last post by:
I've a PHP script that does some stuff, zips up some files, and starts an FTP process. I need it to do the Zip and FTP in the background and let the page finish, otherwise the user could have...
8
by: Ravi | last post by:
Hi to all, There is a start button in my page. if user clicks on that then a php program should start and should listen on a particular port. and also user should able to do other tasks on...
10
by: laredotornado | last post by:
Hi, I'm using PHP 5. I have a function that takes a little while to run, and I don't want the user to have to wait while it does. Is there a way to run this function in the background? ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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
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...

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.