Server side script that keeps running...


in3D

Member
Joined
Apr 3, 2012
Messages
103
Location
US
Is there a server side script that keeps running, even without http requests?
 
Yes, a server side "script" is just a program, typically with specific interfaces for communicating back to the client but it can really do anything. What is it you actually want to do?
 
SSH into server and run script.


Put into /bin or /etc/init.d


Easy does it.
 
No, the only way to start programs on current OSs is to do a http-request.
I assume what is being asked for is some process that can be initiated through a standard http-request but then doesn't need that browser to remain connected for it to keep going, and the answer is yes, absolutely. You can use CGI to get the parameters of the request, send back a response, close the connection, and then keep going.
 
Back
Top