AutoHotkey Community

It is currently May 27th, 2012, 5:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 189 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13
Author Message
 Post subject:
PostPosted: December 19th, 2009, 9:32 pm 
Offline

Joined: October 3rd, 2009, 2:23 pm
Posts: 8
Well, I've actually had no problems with the RTconsole.exe stub missing characters, and the cmdstub.exe stub seems more stable than that stub and has no issues either. I do some filtering so I only see the packets I want to see which means I'm not bombarding the stub with every packet the computer gets.

I gave a weak attempt at using the dll version, but I could never find a good example of using it to read a streaming program. Packet reading means the program never ends and most of the examples are for reading program output where the program stops. Then the pipe closes and flushes and everyone is happy. There were some examples, but I'm not enough of a programmer to figure out what else I may need to incorporate to get it to work. So I worked off the streaming examples for this version and was able to finally find a useable solution to reading the packets in real time by using the stub program.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 9:33 pm 
Offline

Joined: March 24th, 2009, 2:25 pm
Posts: 22
corrupt

for example this:

cat C:\samplefile.txt|grep test

:-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2009, 3:12 pm 
Hi
Not user if this is the right script for me.. but here goes.

I want to telnet in to a router, send my username and then capture the output from the session to a var so I can manipulate it.

I can sort the logging in, the sending of the username, it the capture I can't do.

The stream the router submits is constant, so it is always changing.
I need to be able to detect any new lines and find specific wording on those lines.

Any ideas ?
Thanks :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2009, 3:14 pm 
Hi
Not user if this is the right script for me.. but here goes.

I want to telnet in to a router, send my username and then capture the output from the session to a var so I can manipulate it.

I can sort the logging in, the sending of the username, it the capture I can't do.

The stream the router submits is constant, so it is always changing.
I need to be able to detect any new lines and find specific wording on those lines.

Any ideas ?
Thanks :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2009, 3:14 pm 
sorry for the double post !!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2010, 10:34 pm 
Offline
User avatar

Joined: December 5th, 2010, 7:19 pm
Posts: 311
Sorry for the year long gap but...

Which one do i use.

I just want to be able to grab the output from telnet.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2010, 7:07 pm 
Offline

Joined: October 15th, 2007, 3:10 pm
Posts: 790
Location: England
You could try using AHKSock instead. I have had some luck using it with AHK to telnet directly into a server.

See my post in the AHKSock thread here for a bit more info, hopefully you can work it out from that thread.

It does mean that you effectively have to implement parts of the Telnet protocol yourself, but I have this working fine for my servers.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 1st, 2011, 8:39 am 
Offline

Joined: December 17th, 2010, 5:44 am
Posts: 8
Location: Missouri, United States
As a warning for others who might be have the same problem I did in getting these scripts to work:

Make sure you are using the ANSI version of AutoHotkey!

I wasted many hours until I finally figured out that neither CMDret, nor ConsoleApps will work with the UNICODE version.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 3rd, 2011, 2:39 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
xpace wrote:
As a warning for others who might be have the same problem I did in getting these scripts to work:

Make sure you are using the ANSI version of AutoHotkey!

I wasted many hours until I finally figured out that neither CMDret, nor ConsoleApps will work with the UNICODE version.
Please note that this version has been considered obsolete for quite a while and has known issues. Please consider using the dll versionor maybe StdoutToVar instead if this script doesnt work as expected.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 189 posts ]  Go to page Previous  1 ... 9, 10, 11, 12, 13

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Stigg and 9 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group