Solved

Run executable are Web Server in the background

Posted on 2003-11-17
7
203 Views
Last Modified: 2010-04-20
Hi,

I have made a client server application in which the server accepts connection from the client on some specific port. Now i have to put this code on a Web Sever. Is there a way i can run the server.exe on the Web server at all times / in the background.

I would also want to know how to stop the exe and run it again.

I will be very grateful if anyone could help me with it.

Ahsan.
0
Comment
Question by:Shapak
  • 3
  • 2
7 Comments
 
LVL 9

Expert Comment

by:fz2hqs
Comment Utility
You need to get the .exe running as a service or it will not survive the logoff. You have a couple of choices

1. Rewrite (a slight rewrite) so that the .exe is a service in its own right using ntsvc.ocx (Windows NT Service Control)
2. Get the Windows 2000 resource kit and follow http://support.microsoft.com/?kbid=137890 (I am assuming you are using win 2000?)

The resource kit I think may cost a little - not too sure
0
 

Author Comment

by:Shapak
Comment Utility
Hi,
Thanx for the help. Plz forgive me for my silliy question as i am new to this thing. So here goes another... How will i put the service on the webserver? Like i have the .exe running in the script to accept connection on some socket. Now how will it start running to accept connection.
Ahsan.
0
 
LVL 9

Expert Comment

by:fz2hqs
Comment Utility
The service will be part of teh operating system. If you go into Control Panel > Administrative Tools > Services you will see all the services there, yours should appear there eventually. How you get your web site to access the service will depend on what that web site and service do, you need to give more details about both
0
 

Author Comment

by:Shapak
Comment Utility
No no my website won't be accessing the service ... the service is to run on the webserver and my application will connect to the server through that service. Coz the service will be listening for socket connections and my application will make a socket connection. I hope i am making my self clear. I think i can't seem to convey the message...

Ahsan.
0
 
LVL 9

Accepted Solution

by:
fz2hqs earned 45 total points
Comment Utility
Sorry my fault, answering another question elsewhere and got confused.

-You executable will be running as a service.
-IIS itself is a service
-IIS accepts connections

So provided that you coding is ok then you should be able to connect
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now