Le jeudi 25 novembre 2010 17:33:23, Brandon Casci a écrit :
> Damn you're good! Is this going to try and execute the file or simply read
> the file? Either way is very helpful, I'm just curious because I'm unable
> to try at the moment.

Basically, what you have to do is write a script that fetches status.xml and 
returns its content. Then you can do for instance:

def status(uri,headers) = 
 # inline headers
  headers = list.map(fun (x,y) -> "#{x}: #{y}", l)
  headers = string.concat(seperator="\r\n", headers)
  # Get script output
  get_process_output("/path/to/script #{quote(uri)} \"#{quote(headers)}\"")
end

# Hook up
harbor.http.register(port=8005, "status.xml", status)

(sorry code untested :) )

Romain

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to