|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
I've been the admin of an Unreal Tornament server for a while now, and I've been really intrigued as to how it starts a HTTP daemon-style process on a specified port on the host machine. I've realised that this could be incredibly useful for a Perl script that I've already written, and I'd love to know if there's a script that's already been written (or a Perl module) that can give me the capability of doing this. Example: When the script is run, it uses a port on localhost (say, for argument, 6000) and turns it into a HTTP server port. From the page http://localhost:6000, I could then use admin functions on the same script (eg. setting variables inside the script). This might sound confusing/stupid ( ), but I really hope there's a method that can help me accomplish this. Thanks in advance for any help
|
|
|
|
Joined: May 2000
Posts: 1,356
Addict
|
Addict
Joined: May 2000
Posts: 1,356 |
why dont you use the http server to do such a thing?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Because the script is meant to be a continuously running process, and (as far as I know) outside programs can't change the value of variables inside a running Perl script... There's a very good chance that I'm wrong, of course
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
I've written a handful of little scripts that act as quick HTTP proxies and servers before... it's pretty simple to do, though I can't find any prebuilt httpds on CPAN...
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Yeah, Charles, that was probably the first place I looked. Then Hotscripts, then a quick Google search... but still nothing. I've already tried using some of the modules on CPAN, but it was like looking for the light switch in the dark to me. Would you be generous enough to point me in the right direction, please?
|
|
|
|
Joined: May 2000
Posts: 1,356
Addict
|
Addict
Joined: May 2000
Posts: 1,356 |
look at AmphetaDesk `s source... It has this functionality afaik...
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Ah... Yes, it does contain the kind of functionality I'm after... I've had (limited) success with AmphetaDesk's source code, but it seems to be the kind of stuff I'm looking for. Thanks Burak
|
|
|
|
Joined: May 2000
Posts: 1,356
Addict
|
Addict
Joined: May 2000
Posts: 1,356 |
np
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|