Re: Net::Telnet needs line of code added for fhopen to work with cygwin-perl and IO::Pty module in MSWin

> >      It seems that on a MSWin OS there is no way to truly escape 
> > the infamous CR\LF.
> The TELNET protocol specifies CR LF as an end-of-line.  The
> Net::Telnet::print() code you mention converts the OS native EOL
> to the TELNET EOL.
> If you're using Net::Telnet with a pseudo terminal then yes you
> do want the EOL to be just CR.

Alternatively you might want to set the pty to raw mode, which disables 
character translation and gives a more pipe-like semantics.  The latest 
IO-Tty v1.00 has a set_raw() method...

> Probably the best way to do this is just:
>    $telnet->output_record_separator("\r");
> Modifying Net::Telnet to convert CR LF to just CR is definitely
> not the right way to do this.

I'll second that. :-)

> Here's some code that changes a password on SunOS 5.8.  Give it a
> try on cygwin.

Ugh, I just released a much-improved version of IO-Tty (v1.00), please 
take a look how it's done nowadays (in the 'try' and '' 
scripts).  Alternatively try using Expect, which gives you similar 
functionality to waitfor() and also lets you use an already opened 

Hope this helps,


3/15/2002 8:49:02 AM
perl.perl5.porters 48287 articles. 1 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 46


Similar Artilces:

ORDER BY and error message is incorrect syntax. i have two code lines for order by .. first code lines work but second code lines doesnt work.
hello friends my first code lines is below.. but it doesnt work and error message is incorrect syntax near the order.. ??? what should i do ? i have sqldatasource1 and gridview1 for my first code lines and choose datasource of gridview1 is sqldatasource1.. it works when i delete order.. it just works for  "Select * from product where name= '" & Request("TextBox1") & "' and name1= '" & Request("TextBox2") & "' and name2= '" & Request("TextBox3") & "'"quest("Text...

need sample Project With code ( with backend codings) and i want guidance
i am doing project in with backend codings... i feel very tough.. Because This is my first Project... So please send me a sample project with code that contains all important controls with database access(sql).. If you interested please guide me through out this project.. I will be very happy.. thank u..   At the top of this page, click on "Learn." JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue....

Re: [PATCH] Re: [PATCH] Re: Win32 modules & cygwin
From: Yitzchak Scott-Thoennes <> To: Cc: On Mon, Feb 26, 2007 at 01:28:51PM +0000, Steve Hay wrote: > Yitzchak Scott-Thoennes wrote: > >>On 2/23/07, Steve Hay <> wrote: > >>>Craig Berry wrote: > >>>>Hmm. I get the following on VMS with blead@30382: > >>>> > >>>>ext/Win32API/File/t/file....................................FAILED at > >>>>test 1 > >>>>ext/Win32API/File/t/tie.....................................FAILED at > >>>...

Re: test skipping based on $Config{extensions} (was: Re: [PATCH] Re: [PATCH] Re: Win32 modules & cygwin)
Craig Berry wrote: > On 3/13/07, Yitzchak Scott-Thoennes <> wrote: >> On Tue, Feb 27, 2007 at 02:43:29AM -0800, Yitzchak Scott-Thoennes wrote: >> > Steve Hay wrote: >> > > Yitzchak Scott-Thoennes wrote: >> > >> On Mon, Feb 26, 2007 at 01:28:51PM +0000, Steve Hay wrote: >> > >>> Thanks, applied as #30409. >> > >> >> > >> Um, given Craig's comment in >> > >>, I think I'd >> > >> rath...

ASP.NET newbie needs to understand how impersonation works (with AD)
Hi, I've read countless posts on this and I just can't get my page to work.  Quite simply, I have the following code on a webpage that creates a security group in AD.   Dim SoftName As String = Me.txtInput.Text Dim dirEntry As New DirectoryEntry("LDAP://OU=Software,OU=Groups,OU=BEBRU," & Me.strRootDomain) Dim entries As DirectoryEntries = dirEntry.Children Dim InstallGroupString As String = "HH SWES GG " & SoftName Dim UnInstallGroupString As String = "HH SWES GG " & SoftName &...

Re: Net::LDAP :: Admin limit on AD (Work around)
------_=_NextPart_001_01C8DC0D.03F0A4B6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 U3Vub25lIGRvZXMgYWxsb3cgcGVyIHVzZXIgYWRtaW4gbGltaXRzIGJ1dCBBRCBkb2VzIG5vdC4g WW91IGNhbiBjaGFuZ2UgdGhlIGxpbWl0cyBidXQgaXQgaXMgZ2xvYmFsIChpZiBJIHJlbWVtYmVy IGNvcnJlY3RseSkuIEFsc28sIHdlcmUgeW91IHRoaW5raW5nIFJlZG1vbmQgbm90IFJpY2htb25k PyA6KQ0KDQpEb24NCg0KLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQ0KRnJvbTogVmFydGFr LCBZYXNoIFYgPFlhc2hfVmFydGFrQGFwbC5jb20+DQpUbzogSnVzdGluIEFsY29ybiA8anVzdGlu QGphbGNvcm4ubmV0Pg0KQ2M6IHBlcmwtbGRhcEBwZXJsLm9yZyA8cGVybC1sZGFwQHBlcmwub3Jn ...

Re: RE: I need the DBI Module
I have to thank you for the detail of "BDB" instead of "DBD" that was the = whole problem to begin with. To answer your curiosity I did get to download the DBI from yesterday but for some reason the files where corrupted when I tried to = use them. So I wrote and asked for a place to download without giving my = personal reason which I found to be pointless. That for some reason made = you curious. But thanks to other very nice people that sent me different = reliable url's where I did get to download and use. =20 By the way, if you are goin...

RE: RE: In Need of a Miracle...WAS:Re: Pg Connection WOES on DEAD LINE!
Well I got this from your code... $sqld="?"; $sthd=$dbhd->prepare($sqld); So evidentally you were doing something wrong that you didn't mean. Also you might want to read the docs on finish() which in your case you do not need. Ilya Sterin -----Original Message----- From: To: Sterin, Ilya; Sent: 05/31/2001 9:55 PM Subject: Re: RE: In Need of a Miracle...WAS:Re: Pg Connection WOES on DEADLINE! Thanks, but no...I have read the PLACE HOLDER DOCS...and I AM NOT USING A PLACE HOLDER in the portion that F...

how can I rename Column at GridView ( I need code for code-behind), ASP.Net 2.0 VB.NET (URGENT)
how can I rename Column at GridView ( I need code for code-behind), ASP.Net 2.0 VB.NETHurolulu You can do this in the GridView's RowDataBound or RowCreated event. You just have to filter the RowType to make sure it's a Header.The sample below is in C# if you don't mind. protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e){    if(e.Row.RowType == DataControlRowType.Header)    {        e.Row.Cells[0] = "Column Name";    }} Hope this helps. ...

Code Works on VS 2003 /ASP.NET 1.1 but does not work on VS 2005 / ASP.NET 2.0??
Hi, We have a Perfectly well working Web Application  developed in VS 2003 /ASP.NET 1.1. We are trying upgrade to VS 2005 / ASP.NET 2.0 The Application itself Comprises of a Common SDK Components where we have our Controls like ComboView etc... I downloaded the  VS 2005 Web Application Project Preview and Installed it on my PC. I was successfully able to Upgrade ,compile and run this Web App in VS 2005 ( Until I thought So) After a little test on the Web UI I have found Several Problems:: 1. In the ComboView Control (which is embeded in a Page) we have several Buttons like "Ed...

i have 5 codes line.. how can i go to 2 code line from 5 code line ??
hello friends i use visual basic for visual web developer and i have below code.. i have 5 codes line.. how can i go to 2 code line from 5 code line ?? c = 0 second line If System.IO.File.Exists("~\resimler\") = True Then c = c +1i want to go to 2 code line from here End If Dim DestinationPath As String = "~\resimler\" & c.ToString & FileUpload1.FileNameMark as me if my question or my answer can be helpful for you :) hello friends i have solved this problem.. my code is below but i have new problem.. error codel line is FileUpload1.PostedFile.Save...

not a .net programmer -- legacy code suddenly stopped working
 Simple .net front end connects to external data tables provided by offsite vendor suddenly started throwing errors after working smoothly for 2 years.  Did not write the front end connections, but looking at source code, the external DB primary key is varchar, but local vb dataset has this field as system.String...Could that be the problem?   cj1:suddenly started throwing errors after working smoothly for 2 years Perhaps if you shared what the errors are, someone could help you.  Steve Wellens My blog The following error occurred:  Min (1126) must be ...

ASP.NET code not working in VisualStudio.NET
Created the following code in VS.NET modifying a block of code from a reference book wherein the author was using a simple text editor. Sub InsertRecord() Dim conClasf As OleDb.OleDbConnection Dim cmdClasf As New OleDb.OleDbCommand Dim strClasf As String Dim strSQL As String Dim intRowsAff As Integer '----------------- lblErrMsg.Text = "" lblRecsAff.Text = "" '----------------- strClasf = "Provider = Microsoft.Jet.4.0.;" & _ ...

code working in asp but not working in
I have the following code in a .asp file <% Dim obj1 obj1 = CreateObject("MYOBJ") %> The same code in a page Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim obj1 obj1 = CreateObject("MYOBJ") End Sub returns the error: "Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request" "a... code in 2.0: works on hosts win 2.0 server, crashes on xp offline workstation
Hi All  Can anyone tell me whats wrong with this code ?  Dim WeeklyRentalMinT as double = txtminrent.text  I 've been using code similar or identical to that since I started experimenting with ASP 3.0 in 2004 its worked every time, yet I now wonder if it contributed to slowing down my apps, we'll the code works on my host server, it worked on my pc when it was running 1.1, but now that i've upgraaded to 2.0, i get an error "[FormatException: Input string was not in a correct format.]"  How would you read input from a form tex...

Web resources about - Re: Net::Telnet needs line of code added for fhopen to work with cygwin-perl and IO::Pty module in MSWin - perl.perl5.porters

Resources last updated: 12/3/2015 8:50:36 AM