I have a expect script to do a telnet-like login and then receive a one-way stream of binary data.
Unfortunately the stream is corrupted unlikely if I use telnet/nc directly. Expect cant handle chars beside ASCII, or will convert them to unicode or so?
Can I disable this to have a raw output?
In the exploring expect book it talks about being able to handle the null character for binary data and gives a script to capture that. Maybe it will work for you.http://books.google.com/books?id=BJpkh3RdG_UC&pg=PA155&lpg=PA155&dq=exploring+expect+expecting+a+null+character&source=bl&ots=PoRrtWBfWx&sig=IOvVpNfQ5n1KOQ2o9UYnKqT3MqM&hl=en&sa=X&ei=AVo5T5C5JYXi0QG66JWyAg&ved=0CDUQ6AEwAw#v=onepage&q&f=false
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.