?
Solved

Run executable are Web Server in the background

Posted on 2003-11-17
7
Medium Priority
?
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 9

Expert Comment

by:fz2hqs
ID: 9769844
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
ID: 9776707
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
ID: 9777173
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
ID: 9777775
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 180 total points
ID: 9777840
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

800 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