I am trying to telnet a HProCurve J9279A Switch but i am getting some unknown characters in the login prompt when i am writing the response in text file . Please let me know how to handle this and remove these junk characters from string . I can say these are some escape sequense which in not recognized by string .
Please register your products now at: www.ProCurve.com
Ok, those are VT100 / VT220 terminal control sequences and then consist of ASCII characters:
ESC [ n ; n x
ESC is Hex 1B
[ is [
n is a number, in ASCII digits: '0' (hex 30) to '9' (hex 39) repeated
; is ;
x is a command code which tells the terminal what to do
Some parts are optional, and question marks can be included as well!
The command code is an ASCII character which (IIRC) will be upper or lower case 'a' to 'z'.
The command code tells the system what to do with the whole command: r is a "Set scrolling region" command, H is cursor positioning, and so forth.
(You can find out what they do here: http://epsfiles.intermec.com/eps_files/eps_man/977047037c.pdf[^] - section 8)
To remove them, you will have to parse the string yourself, and find the start and end of the sequence: it may be possible to do it with a regex, but I've never tried (And am not about to! )
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
I run into the same problem and have figured out a workaround that works for as. It is not a perfect solution.
I use a regular expressions substituions between the TCP buffer and the Telnet protocol because the firmware sometimes use unknow esc sequnences that bother the telnet/terminal protocol.
I use Perl for switch automation but i try to translate it to C# (The orginal is a Perl module
I use this expression
before the big one and this after
because the firmware use sometimes esc secuences that does not exist.
i am using Visual Studio 2012 and Sql Server 2008 R2.
i am writing a program that is about inventory tracking.
All of my works is done.
it is working very well in Visual Studio.
And i have to create setup file.
i use installsheild 2013 LE.
I am constantly encountering errors in the setup file.
occurs difference with version of sql server which another computer and mine
and there are many errors about different case.
So let me know please, how i create setup file in this situation.
i want to automaticaly setup sql server,net frameworks and my project.
First, do NOT install SQL Server as part of your setup. Reason being is that MS doesn't license nor support doing that. SQL Server should be installed completely separately. This give admins the option of using their own SQL Server to host your app data instead of managing yet another instance of SQL Server.
As you are using Visual Studio 2010, it's a simple matter for you to create an application installer - it's one of the project types. This will include the relevant .NET framework version as a prerequisite.
Shouldn't be any issue if you build the project using MSI Installer. You however need to create MSI Package Using a Visual Studio Setup Project and build/deploy from it. Include all the dependencies properly.
You should only need a configuration file change, though:
Backward compatibility and the .NET Framework 4.5:
The .NET Framework 4.5 and its point releases are backward-compatible with apps that were built with earlier versions of the .NET Framework.
In other words, apps and components built with previous versions will work without modification on the .NET Framework 4.5.
However, by default, apps run on the version of the common language runtime for which they were developed, so you may have to provide a configuration file to enable your app to run on the .NET Framework 4.5.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Just putting it out there.
Any one living on the Sunshine Coast, Qld, Australia, or nearby.
Who is willing to hire themselves out on an hourly basis to help me with C# / Ninjascript programming? I'd love to hear from you.
I have done a book based C# course and am able to code windows apps in Visual Studio but am having trouble with some of what I want to achieve in Ninja.
I have coded one indicator successfully. And am trying to create a more complex tool but am butting my head against a brick wall at present. I know I can hire someone on the internet to code it for me, but I prefer to learn how myself, because there is more I wish to do.
Ideally, an experienced coder to come to my house and spend an hour or two at a time with me would do the trick. Just to help me clear a few hurdles.
So hoping to hear from someone.
You have chosen the wrong site. Codeproject.com is not meant for such stuff. Please don't post such messages/Questions/Answers anywhere on the site. We have very powerful reporting mechanism which may lead you to account cancellation.
"When you don't know what you're doing it's best to do it quickly"- SoMad