Solved

Run executable are Web Server in the background

Posted on 2003-11-17
7
205 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
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 45 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
file too large for website 6 68
Why addon domain redirects to the original domain? 8 66
CFFILE upload help 98 156
Ubuntu Apache Webserver - File Permissions 5 31
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

10 Experts available now in Live!

Get 1:1 Help Now