| HomeSeer HS2™ Specific General discussion about HomeSeer HS2. |

September 12th, 2009, 03:34 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Launching telnet commands under homeseer : Possible ?
Hello,
I'd like to launch some simple telnet commands under homeseer , but it's really simple as expected.
I don't found any help on the support web site
http://www.homeseer.com/support/home...2/homeseer.htm
I tried to put it in a .bat file , but doesn't work too :
telnet musicserver 9090
player count ?
or other commands
exit
</pre>Do you think it's possible ? with a simple way ?
Thanks a lot ...
Regards
|

September 12th, 2009, 07:49 PM
|
|
Super Seer
|
|
Join Date: Sep 2005
Location: Western NY
Posts: 2,000
|
|
I've use a script that I got from the board.
Take a peek around the board.
If you can't find it, I'll look through my scripts directory for you.
--Dan
__________________
"There are three kinds of men. The one that learns by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves."
|

September 13th, 2009, 02:00 PM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
The only thing i've found is "how to keep a telnet session open" just it , and after watching, don't found something about executing telnet commands ...
 sorry but thanks for your proposition.
__________________
|

September 13th, 2009, 04:27 PM
|
|
Super Seer
|
|
Join Date: Sep 2005
Location: Western NY
Posts: 2,000
|
|
Here you go:
I use this to access ZoomPlayer on another machine from my server.
I hard code the IP and Port, then you just parse out the param object to what you want. Again, this one is designed to just send specific commands to ZoomPlayer.
It is a .vb file, so rename it. Enjoy!
--Dan
__________________
"There are three kinds of men. The one that learns by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves."
|

September 17th, 2009, 05:30 PM
|
|
Seer Deluxe
|
|
Join Date: Dec 2002
Location: San Antonio
Posts: 175
|
|
Launching telnet would be different than supplying a scripted input to the telnet application after it is launched. Unix supports such input to telnet, but I don't believe MS's windows telnet app supports it. Basically you are just redirecting 'std input'.
That being said you could you Cygwin on your HA server. It's a Unix-on-windows implementation that is easy to use that supports the bash shell.
I've used the unix command 'expect' successfully to script telnet under Cygwin, much more control than simply redirecting std input. It supports branching and other logic.
|

September 18th, 2009, 01:34 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Yes mterry63, i alrready have installed cygwin on my computer ( and it works fine for my netcams plugin scripts ) ... but before using something OUT of hs2, just prefer to know in there is something IN ready to use ...
I agree that if there isn't , cygwin is another way ( a good ) to use telnet with stdin/out.
__________________
|

September 18th, 2009, 10:42 AM
|
|
Super Seer
|
|
Join Date: Sep 2005
Location: Western NY
Posts: 2,000
|
|
nslmanu,
Try that script I posted. That's "IN" Homeseer!
:-)
__________________
"There are three kinds of men. The one that learns by reading. The few who learn by observation. The rest of them have to pee on the electric fence for themselves."
|

September 20th, 2009, 03:48 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
It's good ..... a little hard to understand ( for me, bad knowledge under windows )  but it's ok , just delete your zoom commands and replace with mine
Thanks
__________________
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 12:10 PM.
|