URGENT> Starting up a VB application from ASP

T

tim

Hi all,

I want to execute a VB application from a ASP page (not .Net). Want I want
to do is
that I write some parameters to a database and then start the external
application that will pickup these parameters and run in the background. I
looked for a sample but I can't find any. Who can help me.

Many thanks
Tim

PS
Sorry for the multi posting if this is bothering you.
 
E

Evertjan.

tim wrote on 16 jul 2007 in microsoft.public.inetserver.asp.general:
I want to execute a VB application from a ASP page (not .Net). Want I
want to do is
that I write some parameters to a database and then start the external
application that will pickup these parameters and run in the
background. I looked for a sample but I can't find any. Who can help
me.

Set a variable, say in the database with the ASP,
and poll it with your external script or program.
PS
Sorry for the multi posting if this is bothering you.

I bothers me that you,
while you know it is not done,
and hopefully know why it is not done,
still say(!) you did multipost [no space].

Do you know the concept of crossposting?
 
T

tim

Als je dan ook zo bij de hand bent om hier op te reageren verwacht ik dan
ook een zinnig antwoord op mijn vraag. Klaarblijkelijk heb je hier zeker dan
geen verstand van?
Het stoort mij dat mensen te snel een oordeel geven over iets wat niet
gewenst is maar wees dan een vent en kom dan met een zinne reactie dan
alleen deze.

Tim


Evertjan. said:
tim wrote on 16 jul 2007 in microsoft.public.inetserver.asp.general:
I want to execute a VB application from a ASP page (not .Net). Want I
want to do is
that I write some parameters to a database and then start the external
application that will pickup these parameters and run in the
background. I looked for a sample but I can't find any. Who can help
me.

Set a variable, say in the database with the ASP,
and poll it with your external script or program.
PS
Sorry for the multi posting if this is bothering you.

I bothers me that you,
while you know it is not done,
and hopefully know why it is not done,
still say(!) you did multipost [no space].

Do you know the concept of crossposting?
 
E

Evertjan.

tim wrote on 17 jul 2007 in microsoft.public.inetserver.asp.general:
Evertjan. said:
tim wrote on 16 jul 2007 in microsoft.public.inetserver.asp.general:
I want to execute a VB application from a ASP page (not .Net). Want
I want to do is
that I write some parameters to a database and then start the
external application that will pickup these parameters and run in
the background. I looked for a sample but I can't find any. Who can
help me.

Set a variable, say in the database with the ASP,
and poll it with your external script or program.
PS
Sorry for the multi posting if this is bothering you.

I bothers me that you,
while you know it is not done,
and hopefully know why it is not done,
still say(!) you did multipost [no space].

Do you know the concept of crossposting?

[Please do not toppost on usenet, Tim]
Als je dan ook zo bij de hand bent om hier op te reageren verwacht ik
dan ook een zinnig antwoord op mijn vraag. Klaarblijkelijk heb je hier
zeker dan geen verstand van?
Het stoort mij dat mensen te snel een oordeel geven over iets wat niet
gewenst is maar wees dan een vent en kom dan met een zinne reactie dan
alleen deze.

Tim is annoyed because he thinks he has a right ot a usefull answer on
usnet and he [wrongly, IMHO] does not think my answer is. Perhaps he
thinks usnet to be a paid helpdesk.

He is also annoyed that I reacted on his probable multiposting,
which he himself(!) brought up. Perhaps he really does not know the
concept of crossposting.

So be it.
 
J

Jim Rodgers

Evertjan. said:
Perhaps he really does not know the
concept of crossposting.

Would you provide this information about the
concept of crossposting?

— Jim Rodgers
 
J

Jim Rodgers

Tim,

"Evertjan" briefly mention an idea that I use with great success.
Let me describe what I did, and you might find some aspects of
this will work well for you.

I have web pages where customers enter data that need to
be processed by another program – and this other program
does not play well with IIS (because the IIS "user" accounts
do not have user profiles, and for many other reasons). So,
this other process runs all the time in the background, and it
monitors the database where the web page puts the customers
data.

I can run this "background" program either in the foreground
(in other words, log-in to the server and run it) or in the
background (actually) by making it into an NT Service (which
is super easy, by the way). An NT Service keeps running even
if you log-out. Also, it can be set to auto-restart in the event
it terminates abnormally.

You _could_ run it on demand by launching the program from
your web page. I assume you would use the Windows
Scripting Host object to do this. But keep in mind what might
happen if multiuple users ran this at the same time: you will
have multiple instances of the "background" process running
as a result. In that case, you need to assure your system
does not run out of resources, and that the application will
run okay in multiple instances.

In my case, this is just another reason why the web page
cannot be talking directly to the background process. Instead,
I have the background process doing a query every 500ms
to see if there are any data to process. I have a table where
new "work" is posted, and one column in that table is a status
indicator. When the status column reads a certain value, the
background process takes care of it. I believe this is the kind
of thing "Evertjan" may have been suggesting.

Good luck,

Jim Rodgers
 
E

Evertjan.

=?Utf-8?B?SmltIFJvZGdlcnM=?= wrote on 22 jul 2007 in
microsoft.public.inetserver.asp.general:

:>

"Evertjan" briefly mention an idea that I use with great success.
Let me describe what I did, and you might find some aspects of
this will work well for you.

I have web pages where customers enter data that need to
be processed by another program ƒ " and this other program
does not play well with IIS (because the IIS "user" accounts
do not have user profiles, and for many other reasons). So,
this other process runs all the time in the background, and it
monitors the database where the web page puts the customers
data.

I can run this "background" program either in the foreground
(in other words, log-in to the server and run it) or in the
background (actually) by making it into an NT Service (which
is super easy, by the way). An NT Service keeps running even
if you log-out. Also, it can be set to auto-restart in the event
it terminates abnormally.

You _could_ run it on demand by launching the program from
your web page. I assume you would use the Windows
Scripting Host object to do this. But keep in mind what might
happen if multiuple users ran this at the same time: you will
have multiple instances of the "background" process running
as a result. In that case, you need to assure your system
does not run out of resources, and that the application will
run okay in multiple instances.

In my case, this is just another reason why the web page
cannot be talking directly to the background process. Instead,
I have the background process doing a query every 500ms
to see if there are any data to process. I have a table where
new "work" is posted, and one column in that table is a status
indicator. When the status column reads a certain value, the
background process takes care of it. I believe this is the kind
of thing "Evertjan" may have been suggesting.

Wel yes, "Jim",

If the background programme is not interacting with the user-at-hand,
in the sense that the output is not needed for the next page or AjAX
transaction, it could be run every 30 seconds, every 5 minutes or even
twice a day. This could be easily skedueled by the/a skeduler outside the
influence of the IIS, so having none of the restrictions of the IIS-user.

I can imagine this non-interaction to be the case with a programme that
sends resulting emails that can wait some time to be sent or even are
ment to be sent at a later time, like the Google reminder service.

That way the problem of running multiple instances could be negligible.
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,279
Latest member
LaRoseDermaBottle

Latest Threads

Top