Justin Smithies wrote:

Hi can anyone help me out here.
I want to write a shell script that will telnet to the FG root and read certain values into variables.
It also has to be able to write new values back using telnet.

Im trying to make a script that will run in the background and control certain functions on my home cockpit.

I am just unsure how to implement the telnet bit in a script and have it read or write data from variables to the FG tree.

If you don't mind resorting to perl or python instead of a shell script there are examples and some abstraction code to make all this easy in the source distribution. I don't know how to do network socket functions inside a shell script either ... I'm not sure it's directly possible.

Curt.

--
Curtis Olson        http://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to