Jump to content
Sign in to follow this  
Midice Holfe

Guidance needed, please. HTTP: request

Recommended Posts

 hi folks,  I have a project that I am presently working on, and need some guidance please.

Firstly I want to say if you can post links to recommended learning pages or offer commented examples, that would be wonderful, as I have Goggled and Wiki'd  (seems a lot now) over the last  days  in search of info,  A)  I got it, but seemed to not answer my thoughts on what I have to do, or B)  seemed way over my understanding,  I could not find the middle ground, with  SL to off world communication.

What I try and do.:   I would like to Start a MetaBolt scripted AV,  via a in world script.  Now I get the HTTP/:  of sending the message, I can't though, join the dots between sending the message and starting a  .BAT file.

( I  intend to  run from my computer while I work on this, so no external server at moment- also I don't think I will use it often enough too require a Server, I'll just take the bandwidth hit..)

once this project sorted and my confidence grows I would like too  create a data base using SQL(that's down the track though, as I only a little way into the SQL and PHP  manuals/books).

Thanks in advance, for your advice

 

oops! sorry,  I should explain what I kind of picture or understand as the steps involved,

1. send the request (LSL script HTTP: ).

2. I will need a  program listening to the port on my computer, for  a trigger(password and trigger string) most prolly a little .exe file  in C#.

3. the .exe file  triggers/runs  the BAT file.

4. send a responce back too the LSL script, to complete the   HTTP: .

 

Share this post


Link to post
Share on other sites

An application listening for remote queries and then doing something when same are received is generally called a server. I could've probably helped you with making a simple server to your specification on Linux/Unix machine but I've no idea how to do it on Windows <don't do windows :) >. I don't even know if there is a sufficient shell on windows to run a batch file you would need.

Share this post


Link to post
Share on other sites

The steps you describe are most likely exactly what you have to do. To run a batch file though a c# programm would be easy - something like: 

System.Diagnostics.Process.Start(@"C:\mybatchflie.bat");

as far as the little http-call-listener is concerned - that shouldn't be much harder to do. Just google for examples and libraries - I'm sure. you'll find tons of them.

However - you issue is not a scripting issue - but a windows programming issue - so looking for a forum focussed on this seems more promising to me then asking in a LSL forum.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...