www.homeseer.com

Go Back   HomeSeer Message Board > HomeSeer > Home Automation Software > HomeSeer HS2™ Specific

HomeSeer HS2™ Specific General discussion about HomeSeer HS2.

Reply
 
Thread Tools Display Modes
  #1  
Old September 12th, 2009, 03:34 AM
nslmanu nslmanu is offline
Seer Deluxe
 
Join Date: Feb 2009
Location: France
Posts: 178
Default 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
Reply With Quote
  #2  
Old September 12th, 2009, 07:49 PM
drozwood90 drozwood90 is offline
Super Seer
 
Join Date: Sep 2005
Location: Western NY
Posts: 2,000
Default

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."
Reply With Quote
  #3  
Old September 13th, 2009, 02:00 PM
nslmanu nslmanu is offline
Seer Deluxe
 
Join Date: Feb 2009
Location: France
Posts: 178
Default

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.
__________________
Reply With Quote
  #4  
Old September 13th, 2009, 04:27 PM
drozwood90 drozwood90 is offline
Super Seer
 
Join Date: Sep 2005
Location: Western NY
Posts: 2,000
Default

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
Attached Files
File Type: txt Media_Telnet.vb.txt (3.8 KB, 34 views)
__________________
"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."
Reply With Quote
  #5  
Old September 17th, 2009, 05:30 PM
mterry63 mterry63 is offline
Seer Deluxe
 
Join Date: Dec 2002
Location: San Antonio
Posts: 175
Default

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.
Reply With Quote
  #6  
Old September 18th, 2009, 01:34 AM
nslmanu nslmanu is offline
Seer Deluxe
 
Join Date: Feb 2009
Location: France
Posts: 178
Thumbs up

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.
__________________
Reply With Quote
  #7  
Old September 18th, 2009, 10:42 AM
drozwood90 drozwood90 is offline
Super Seer
 
Join Date: Sep 2005
Location: Western NY
Posts: 2,000
Default

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."
Reply With Quote
  #8  
Old September 20th, 2009, 03:48 AM
nslmanu nslmanu is offline
Seer Deluxe
 
Join Date: Feb 2009
Location: France
Posts: 178
Default

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
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:10 PM.


Copyright 1998-2008 HomeSeer Technologies, LLC