You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(26) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(5) |
Feb
(3) |
Mar
(11) |
Apr
(10) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(2) |
Sep
(3) |
Oct
(10) |
Nov
(18) |
Dec
(29) |
2002 |
Jan
(12) |
Feb
(14) |
Mar
(73) |
Apr
(28) |
May
(21) |
Jun
(39) |
Jul
(40) |
Aug
(42) |
Sep
(20) |
Oct
(4) |
Nov
(9) |
Dec
(18) |
2003 |
Jan
(2) |
Feb
(8) |
Mar
(6) |
Apr
(24) |
May
(24) |
Jun
(14) |
Jul
(16) |
Aug
(36) |
Sep
(34) |
Oct
(23) |
Nov
(4) |
Dec
(15) |
2004 |
Jan
(6) |
Feb
(13) |
Mar
(7) |
Apr
(5) |
May
(11) |
Jun
(5) |
Jul
(4) |
Aug
|
Sep
(2) |
Oct
(16) |
Nov
(4) |
Dec
(9) |
2005 |
Jan
(2) |
Feb
(1) |
Mar
(3) |
Apr
(10) |
May
(5) |
Jun
(13) |
Jul
(3) |
Aug
|
Sep
(7) |
Oct
(5) |
Nov
(1) |
Dec
(9) |
2006 |
Jan
|
Feb
(10) |
Mar
(22) |
Apr
(14) |
May
(5) |
Jun
(4) |
Jul
(19) |
Aug
(7) |
Sep
(16) |
Oct
(4) |
Nov
(1) |
Dec
(16) |
2007 |
Jan
(17) |
Feb
|
Mar
(35) |
Apr
(5) |
May
(20) |
Jun
(11) |
Jul
(33) |
Aug
(3) |
Sep
(2) |
Oct
(11) |
Nov
(23) |
Dec
(5) |
2008 |
Jan
(10) |
Feb
(9) |
Mar
|
Apr
(6) |
May
(8) |
Jun
(7) |
Jul
|
Aug
(3) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
(20) |
2009 |
Jan
(8) |
Feb
(8) |
Mar
(3) |
Apr
(8) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(7) |
Dec
(4) |
2010 |
Jan
(2) |
Feb
(1) |
Mar
(3) |
Apr
|
May
(2) |
Jun
(2) |
Jul
(7) |
Aug
(3) |
Sep
(7) |
Oct
(2) |
Nov
(1) |
Dec
(4) |
2011 |
Jan
(4) |
Feb
(5) |
Mar
|
Apr
(3) |
May
(2) |
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(7) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
(30) |
Apr
(10) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(12) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
|
2
(1) |
3
|
4
|
5
(4) |
6
(2) |
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
(2) |
21
|
22
(1) |
23
|
24
|
25
|
26
|
27
(3) |
28
|
29
|
|
|
|
|
|
|
From: Austin S. <te...@of...> - 2004-02-27 23:55:14
|
On Fri, Feb 27, 2004 at 01:25:27PM -0700, Dan Young wrote: > I'm trying to user Perl/Expect to spawn sqlplus and connect to a database via the Net8 vs. IPC. I'm running into problems with the @ character in the connect string, i.e connect scott/tiger@mydb, with $exp->send. I've tried to escape it with \@ but it doesn't work. Does anyone have any ideas or do I nned to stick to IPC connections???? IIRC you can put the the connect string on the command line, like 'sqlplus scott/tiger@mydb'. I'm not sure why send is giving you grief, but you can simply print to it: print $exp 'connect scott/tiger@mydb' . "\r"; If that doesn't work you're probably doing something wrong and should try using the documented debugging methods. Austin |
From: Dan Y. <dan...@sa...> - 2004-02-27 20:47:12
|
I'm trying to user Perl/Expect to spawn sqlplus and connect to a database via the Net8 vs. IPC. I'm running into problems with the @ character in the connect string, i.e connect scott/tiger@mydb, with $exp->send. I've tried to escape it with \@ but it doesn't work. Does anyone have any ideas or do I nned to stick to IPC connections???? Thank you, Dan |
From: Dan Y. <dan...@sa...> - 2004-02-27 20:03:12
|
I'm trying to user Perl/Expect to spawn sqlplus and connect to a daatbase via the Net8 vs. IPC. I'm running into problems with the @ character with $exp->send. I've tried to escape it with \@ but it doesn't work. Does anyone have any ideas or do I nned to stick to IPC connections???? |
From: Roland G. <RGi...@cp...> - 2004-02-22 23:04:20
|
John Wingenbach wrote: > I am trying to use perl/expect to handle the login to a host (supply > password upon request). Don't. Use public key authentication instead, see the ssh docs. Hope this helps. Roland |
From: John W. <exp...@wi...> - 2004-02-20 15:31:31
|
Hello, I am trying to use perl/expect to handle the login to a host (supply password upon request). After login, the script executes interact such that I can then use the session. The problem I run into is that an resize of the window fails. I'd really appreciate any help in figuring this out. This is the basis for enabling a long line of ssh sess TIA, John Here's the pertinent code: $e = new Expect; $e->slave->clone_winsize_from(\*STDIN); $SIG{WINCH} = \&winch; sub winch { $e->slave->clone_winsize_from(\*STDIN); kill WINCH => $e->pid if $e->pid; $SIG{WINCH} = \&winch; } $Expect::Do_Soft_Close =0; $e->spawn ("ssh myhost\r"); $match = $e->expect (60, "password:"); if (!defined $match) { die "Failed to find password prompt at login_dmz".$e->before(); } $e->send("$VALS{dmzpwd}\r"); $e->expect (30, "-re", "[\>\$\#%] *"); $e->interact(); And here is what I get when I run an stty -a and then later follow it up with a resizing: myhost$ stty -a speed 38400 baud; 24 rows; 80 columns; eucw 1:1:0:0, scrw 1:1:0:0: intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ^@ eol2 = ^@; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; reprint = ^R discard = ^O; werase = ^W; lnext = ^V -parenb -parodd cs8 -cstopb -hupcl cread -clocal -parext -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc ixon -ixany -ixoff -imaxbel isig icanon -xcase echo echoe echok -echonl -noflsh -tostop echoctl -echoprt echoke -flusho -pending iexten opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3 myhost$ Use of uninitialized value in sysopen at /usr/lib/perl5/5.8.0/i586-linux-thread-multi/IO/File.pm line 159. Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/IO/Pty.pm line 75. Cannot open slave : No such file or directory at /home/jwing/bin/e line 151 |
From: John W. <jo...@wi...> - 2004-02-20 15:15:49
|
Hello, I am trying to use perl/expect to handle the login to a host (supply password upon request). After login, the script executes interact such that I can then use the session. The problem I run into is that an resize of the window fails. I'd really appreciate any help in figuring this out. This is the basis for enabling a long line of ssh sess TIA, John Here's the pertinent code: $e = new Expect; $e->slave->clone_winsize_from(\*STDIN); $SIG{WINCH} = \&winch; sub winch { $e->slave->clone_winsize_from(\*STDIN); kill WINCH => $e->pid if $e->pid; $SIG{WINCH} = \&winch; } $Expect::Do_Soft_Close =0; $e->spawn ("ssh myhost\r"); $match = $e->expect (60, "password:"); if (!defined $match) { die "Failed to find password prompt at login_dmz".$e->before(); } $e->send("$VALS{dmzpwd}\r"); $e->expect (30, "-re", "[\>\$\#%] *"); $e->interact(); And here is what I get when I run an stty -a and then later follow it up with a resizing: myhost$ stty -a speed 38400 baud; 24 rows; 80 columns; eucw 1:1:0:0, scrw 1:1:0:0: intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ^@ eol2 = ^@; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; reprint = ^R discard = ^O; werase = ^W; lnext = ^V -parenb -parodd cs8 -cstopb -hupcl cread -clocal -parext -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc ixon -ixany -ixoff -imaxbel isig icanon -xcase echo echoe echok -echonl -noflsh -tostop echoctl -echoprt echoke -flusho -pending iexten opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3 myhost$ Use of uninitialized value in sysopen at /usr/lib/perl5/5.8.0/i586-linux-thread-multi/IO/File.pm line 159. Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/IO/Pty.pm line 75. Cannot open slave : No such file or directory at /home/jwing/bin/e line 151 |
From: ROCHE,WILLY (HP-France,ex1) <wil...@hp...> - 2004-02-06 08:49:34
|
Hi, This proposal was a good one. I have write a second script which start the first one with qx { first_script } and this works now. There should really be something = strange in the way Expect.pm handle stdin/stdout. I will still try to find a better solution, has I have large amout of = data to get from the web POST, it's not convenient to start the second = script with all those data on the cmd line and passing all this through a file require to ensure that concurrent access to the web page won't crash = each other, which is feasible but painfull to implement. Anyway, thanks for the idea. I now have a more precise idea of where in = the expect.pm code to look to try to fix the issue directly. Regards, Willy --=20 Willy ROCHE Network Support Problem Management HP Managed Services EMEA Networks ___________________________________ Tel: +33 4 7614 4768 Fax: +33 4 7614 1716 E-Mail: wil...@hp... Hewlett-Packard Grenoble 5, avenue Raymond Chanas 38053 GRENOBLE Cedex 9 http://www.hp.com/hps/network/ > -----Original Message----- > From: Dav...@CT... [mailto:Dav...@CT...] > Sent: jeudi 5 f=E9vrier 2004 16:17 > To: ROCHE,WILLY (HP-France,ex1) > Cc: exp...@li...; > exp...@li...; Roland Giersig > Subject: RE: [Expectperl-discuss] Issue with Expect.pm ssh command > through Apache web >=20 >=20 >=20 >=20 >=20 >=20 >=20 > If it works fine from the cmd line and you dont' feel like=20 > messing with it, > then pending what Roland says, you might want to consider avoiding = the > issue by moving your Expect.pm code out of CGI script to an=20 > external perl > script, then open this external perl script as a read-only=20 > FileHandle from > CGI. This way, everybody wins. cgi script is happy because=20 > now it only > deals with standard FileHandle. >=20 > Personally, I've not had much luck using Expect.pm within=20 > Perl CGI because > of forking issues and duplicate sessions (among other=20 > things), but rather > than intellectually solving the problem, I just avoid it. =20 > Whatever the > CGI script needs to get back for display could simply be=20 > engineered to be > STDOUT in the external perl Expect script. You can make=20 > STDOUT hot in the > CGI script (i.e., $|=3D1) if you want to force updates=20 > incrementally from > external script without making the user wait, but maybe that's not > important >=20 >=20 >=20 >=20 >=20 > =20 > =20 > =20 > =20 > To:=20 > Roland Giersig <RGi...@cp...>, =20 > =20 > exp...@li... =20 > cc:=20 > =20 > "ROCHE,WILLY (HP-France,ex1)" =20 > Subject: RE: [Expectperl-discuss] Issue with =20 > <wil...@hp...> =20 > Expect.pm ssh command through Apache web =20 > Sent by: =20 > =20 > exp...@li...urc =20 > =20 > eforge.net =20 > =20 > =20 > =20 > =20 > =20 > 02/05/2004 07:54 AM =20 > =20 > =20 > =20 > =20 > =20 >=20 >=20 >=20 >=20 > Hello Roland, >=20 > Thanks for your answer. > Let me explain the whole issue I am facing: > - I use Net::Telnet::Cisco to control some cisco equipments. > - Those equipements are accessible only from one "secured" system. > - This secured system can only be accessed through ssh. >=20 > Therefore, as the only way for me to use Net::Telnet::Cisco=20 > even after the > rebound is to use the possibility to start=20 > Net::Telnet::Cisco passing a > open FileHandle, I have think of using expect->spwan function=20 > to connect > via > SSH to the secure system and then pass the FileHandle to N::T::C. > Maybe it's not the best way to do it? Have you other suggestion? >=20 > Nevertheless, this work fine when running the script from=20 > console, but when > I run the script via Apache and Mod_Perl, ssh does not accept to = start > properly and answers the error messages > > Pseudo-terminal will not be allocated because stdin is not=20 > a terminal. # > when starting > > read: Bad file descriptor # when I do the first ->expect command > > ttytype: couldn't open /dev/tty for reading > > stty: : Not a typewriter >=20 > My system is a PC with Linux RH8, Perl 5.8.3 / mod_perl=20 > 1.99_12 / Apache > 2.0.48 >=20 > Is there a better way to initiate a ssh to 1st system and=20 > then telnet to > something else and then provide an open FileHandle to=20 > Net::Telnet::Cisco? >=20 > Thanks in advance. > Willy >=20 > -- > Willy ROCHE > Network Support Problem Management > HP Managed Services EMEA Networks > ___________________________________ > Tel: +33 4 7614 4768 > Fax: +33 4 7614 1716 > E-Mail: wil...@hp... > Hewlett-Packard Grenoble > 5, avenue Raymond Chanas > 38053 GRENOBLE Cedex 9 > http://www.hp.com/hps/network/ >=20 >=20 > > -----Original Message----- > > From: Roland Giersig [mailto:RGi...@cp...] > > Sent: mercredi 4 f=E9vrier 2004 11:05 > > To: exp...@li... > > Subject: Re: [Expectperl-discuss] Issue with Expect.pm ssh command > > through Apache web > > > > > > ROCHE,WILLY (HP-France,ex1) wrote: > > > > > Hi Everyone, > > > > > > I am trying to connect to some equipment through ssh and > > want to use Expect. > > > > Are you sure you HAVE to use Expect? :o) > > How about non-interactive ssh commands? > > > > > It works fine from console, but when starting my perl > > script from Apache web > > > server it fails. > > > > > > I have Perl 5.8.3 / mod_perl 1.99_12 / Apache 2.0.48 > > > > > > Code that works on console but not through the web: > > > $exp =3D new Expect; > > > $exp->raw_pty(1); > > > $exp->spawn ('ssh', '-1', '-A', 'me@otherhost'); > > > $exp->expect (10, "\$"); # waiting for the server prompt > > > $exp->send ("ls\n"); > > > $exp->expect (10, "toto"); # one of the file in ls output > > > > > > On console, it works fine and exit properly. > > > Through web, it does not and ouput following errors: > > > Pseudo-terminal will not be allocated because stdin is > > not a terminal. > > > read: Bad file descriptor > > > ttytype: couldn't open /dev/tty for reading > > > stty: : Not a typewriter > > This is rather strange. What system are you running on? Normally = the > > spawned program should get the pseudo-terminal as its controlling > > terminal... > > > > > I also try ssh options "-t" and "-T" with no benefits. > > > > Yes, ssh is very security-concerned and won't read a password from = a > > non-terminal stdin. But if you set public-key-authentication > > so you can > > login without a password then it doesn't have to ask for a > > password and > > it should work. BTW, have you read the Expect FAQ about ssh? ;o) > > > > Best regards, > > > > Roland > > -- > > RGi...@cp... > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > Expectperl-discuss mailing list > > Exp...@li... > > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > > >=20 >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss >=20 >=20 >=20 >=20 > ------------------------------------------------ > NOTICE OF CONFIDENTIALITY > ------------------------------------------------ >=20 > This e-mail and any attachments thereto is intended only for=20 > use by the > addressee(s) named herein and may be proprietary and/or=20 > legally privileged. > If you are not the intended recipient of this e-mail, you are hereby > notified that any dissemination, distribution or copying of=20 > this email, and > any attachments thereto, without the prior written permission=20 > of the sender > is strictly prohibited. If you receive this e-mail in error, please > immediately telephone or e-mail the sender and permanently delete the > original copy and any copy of this e-mail, and any printout thereof. >=20 > All documents, contracts or agreements referred or attached=20 > to this e-mail > are SUBJECT TO CONTRACT. >=20 > The contents of an attachment to this e-mail may contain=20 > software viruses > that could damage your own computer system. While CTC=20 > Communications has > taken every reasonable precaution to minimize this risk, we=20 > cannot accept > liability for any damage that you sustain as a result of=20 > software viruses. > You should carry out your own virus checks before opening any=20 > attachment. >=20 |
From: Roland G. <RGi...@cp...> - 2004-02-06 07:31:55
|
ROCHE,WILLY (HP-France,ex1) wrote: > Hello Chris, > > Thanks for your answer. You have perfectly understand my needs, but I did > not provide one important remark: > I have no right to add a script on the secure system, moreover when I say > "A" secured system, it's in fact severals of them in different places, and I > want to avoid needing to deploy my script to 100 secured systems and main > then and manage the versions. > > If you have any other suggestions on how I can do it, please let me know. > > Willy > How about spawning perl as the remote ssh command? open2($from, $to, "ssh $securesystem /usr/bin/perl"); print $to $remotescript; close($to); sysread($from, $result); That way you can keep the script for the secure system on your side. I'm using this kind of RPC to gather system info from a couple of machines that need supervision. Hope this helps, Roland |
From: <Dav...@CT...> - 2004-02-05 15:22:58
|
If it works fine from the cmd line and you dont' feel like messing with= it, then pending what Roland says, you might want to consider avoiding the issue by moving your Expect.pm code out of CGI script to an external pe= rl script, then open this external perl script as a read-only FileHandle f= rom CGI. This way, everybody wins. cgi script is happy because now it only= deals with standard FileHandle. Personally, I've not had much luck using Expect.pm within Perl CGI beca= use of forking issues and duplicate sessions (among other things), but rath= er than intellectually solving the problem, I just avoid it. Whatever th= e CGI script needs to get back for display could simply be engineered to = be STDOUT in the external perl Expect script. You can make STDOUT hot in = the CGI script (i.e., $|=3D1) if you want to force updates incrementally fr= om external script without making the user wait, but maybe that's not important = =20 = =20 To: Roland G= iersig <RGi...@cp...>, =20 expectpe= rl-...@li... =20 cc: = =20 "ROCHE,WILLY (HP-France,ex1)" Subject: R= E: [Expectperl-discuss] Issue with =20 <wil...@hp...> Expect.p= m ssh command through Apache web =20 Sent by: = =20 exp...@li...urc = =20 eforge.net = =20 = =20 = =20 02/05/2004 07:54 AM = =20 = =20 = =20 Hello Roland, Thanks for your answer. Let me explain the whole issue I am facing: - I use Net::Telnet::Cisco to control some cisco equipments. - Those equipements are accessible only from one "secured" system. - This secured system can only be accessed through ssh. Therefore, as the only way for me to use Net::Telnet::Cisco even after = the rebound is to use the possibility to start Net::Telnet::Cisco passing = a open FileHandle, I have think of using expect->spwan function to connec= t via SSH to the secure system and then pass the FileHandle to N::T::C. Maybe it's not the best way to do it? Have you other suggestion? Nevertheless, this work fine when running the script from console, but = when I run the script via Apache and Mod_Perl, ssh does not accept to start properly and answers the error messages > Pseudo-terminal will not be allocated because stdin is not a terminal= . # when starting > read: Bad file descriptor # when I do the first ->expect command > ttytype: couldn't open /dev/tty for reading > stty: : Not a typewriter My system is a PC with Linux RH8, Perl 5.8.3 / mod_perl 1.99_12 / Apach= e 2.0.48 Is there a better way to initiate a ssh to 1st system and then telnet t= o something else and then provide an open FileHandle to Net::Telnet::Cisc= o? Thanks in advance. Willy -- Willy ROCHE Network Support Problem Management HP Managed Services EMEA Networks ___________________________________ Tel: +33 4 7614 4768 Fax: +33 4 7614 1716 E-Mail: wil...@hp... Hewlett-Packard Grenoble 5, avenue Raymond Chanas 38053 GRENOBLE Cedex 9 http://www.hp.com/hps/network/ > -----Original Message----- > From: Roland Giersig [mailto:RGi...@cp...] > Sent: mercredi 4 f=E9vrier 2004 11:05 > To: exp...@li... > Subject: Re: [Expectperl-discuss] Issue with Expect.pm ssh command > through Apache web > > > ROCHE,WILLY (HP-France,ex1) wrote: > > > Hi Everyone, > > > > I am trying to connect to some equipment through ssh and > want to use Expect. > > Are you sure you HAVE to use Expect? :o) > How about non-interactive ssh commands? > > > It works fine from console, but when starting my perl > script from Apache web > > server it fails. > > > > I have Perl 5.8.3 / mod_perl 1.99_12 / Apache 2.0.48 > > > > Code that works on console but not through the web: > > $exp =3D new Expect; > > $exp->raw_pty(1); > > $exp->spawn ('ssh', '-1', '-A', 'me@otherhost'); > > $exp->expect (10, "\$"); # waiting for the server prompt > > $exp->send ("ls\n"); > > $exp->expect (10, "toto"); # one of the file in ls output > > > > On console, it works fine and exit properly. > > Through web, it does not and ouput following errors: > > Pseudo-terminal will not be allocated because stdin is > not a terminal. > > read: Bad file descriptor > > ttytype: couldn't open /dev/tty for reading > > stty: : Not a typewriter > This is rather strange. What system are you running on? Normally the > spawned program should get the pseudo-terminal as its controlling > terminal... > > > I also try ssh options "-t" and "-T" with no benefits. > > Yes, ssh is very security-concerned and won't read a password from a > non-terminal stdin. But if you set public-key-authentication > so you can > login without a password then it doesn't have to ask for a > password and > it should work. BTW, have you read the Expect FAQ about ssh? ;o) > > Best regards, > > Roland > -- > RGi...@cp... > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Expectperl-discuss mailing list Exp...@li... https://lists.sourceforge.net/lists/listinfo/expectperl-discuss ------------------------------------------------ NOTICE OF CONFIDENTIALITY ------------------------------------------------ This e-mail and any attachments thereto is intended only for use by the= addressee(s) named herein and may be proprietary and/or legally privile= ged. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this email,= and any attachments thereto, without the prior written permission of the se= nder is strictly prohibited. If you receive this e-mail in error, please immediately telephone or e-mail the sender and permanently delete the original copy and any copy of this e-mail, and any printout thereof. All documents, contracts or agreements referred or attached to this e-m= ail are SUBJECT TO CONTRACT. The contents of an attachment to this e-mail may contain software virus= es that could damage your own computer system. While CTC Communications = has taken every reasonable precaution to minimize this risk, we cannot acce= pt liability for any damage that you sustain as a result of software virus= es. You should carry out your own virus checks before opening any attachmen= t.= |
From: ROCHE,WILLY (HP-France,ex1) <wil...@hp...> - 2004-02-05 14:26:01
|
Hello Chris, Thanks for your answer. You have perfectly understand my needs, but I = did not provide one important remark: I have no right to add a script on the secure system, moreover when I = say "A" secured system, it's in fact severals of them in different places, = and I want to avoid needing to deploy my script to 100 secured systems and = main then and manage the versions. If you have any other suggestions on how I can do it, please let me = know. Willy --=20 Willy ROCHE Network Support Problem Management HP Managed Services EMEA Networks ___________________________________ Tel: +33 4 7614 4768 Fax: +33 4 7614 1716 E-Mail: wil...@hp... Hewlett-Packard Grenoble 5, avenue Raymond Chanas 38053 GRENOBLE Cedex 9 http://www.hp.com/hps/network/ > -----Original Message----- > From: Chris [mailto:cas...@pe...] > Sent: jeudi 5 f=E9vrier 2004 09:56 > To: ROCHE,WILLY " "(HP-France,ex1) > Subject: RE: [Expectperl-discuss] Issue with Expect.pm ssh command > through Apache web >=20 >=20 > Can't you place a script on the secured system that would use > Net::Telnet::Cisco to do the work that needs done, and write=20 > the desired > results to stdout? The you could retrieve this information=20 > elsewhere by > issuing the command [ssh securedtargetmachinename > "/path/to/Net-Telnet-script --options"]. >=20 > The quotes may be necessary, and should not be incorrect. =20 > The brackets > are not part of the command. The stdout of the script on the secured > machine should be the result of the ssh command. >=20 > Forgive me if I've misunderstood your needs. >=20 > CA >=20 >=20 > On Thu, 2004-02-05 at 07:54, ROCHE,WILLY (HP-France,ex1) wrote: > > Hello Roland, > >=20 > > Thanks for your answer. > > Let me explain the whole issue I am facing: > > - I use Net::Telnet::Cisco to control some cisco equipments. > > - Those equipements are accessible only from one "secured" system. > > - This secured system can only be accessed through ssh. > >=20 > > Therefore, as the only way for me to use Net::Telnet::Cisco=20 > even after the > > rebound is to use the possibility to start=20 > Net::Telnet::Cisco passing a > > open FileHandle, I have think of using expect->spwan=20 > function to connect via > > SSH to the secure system and then pass the FileHandle to N::T::C. > > Maybe it's not the best way to do it? Have you other suggestion? > >=20 > > Nevertheless, this work fine when running the script from=20 > console, but when > > I run the script via Apache and Mod_Perl, ssh does not=20 > accept to start > > properly and answers the error messages > > > Pseudo-terminal will not be allocated because stdin is=20 > not a terminal. # > > when starting > > > read: Bad file descriptor # when I do the first ->expect command > > > ttytype: couldn't open /dev/tty for reading > > > stty: : Not a typewriter > >=20 > > My system is a PC with Linux RH8, Perl 5.8.3 / mod_perl=20 > 1.99_12 / Apache > > 2.0.48 > >=20 > > Is there a better way to initiate a ssh to 1st system and=20 > then telnet to > > something else and then provide an open FileHandle to=20 > Net::Telnet::Cisco? > >=20 > > Thanks in advance. > > Willy >=20 |
From: ROCHE,WILLY (HP-France,ex1) <wil...@hp...> - 2004-02-05 12:55:29
|
Hello Roland, Thanks for your answer. Let me explain the whole issue I am facing: - I use Net::Telnet::Cisco to control some cisco equipments. - Those equipements are accessible only from one "secured" system. - This secured system can only be accessed through ssh. Therefore, as the only way for me to use Net::Telnet::Cisco even after = the rebound is to use the possibility to start Net::Telnet::Cisco passing = a open FileHandle, I have think of using expect->spwan function to = connect via SSH to the secure system and then pass the FileHandle to N::T::C. Maybe it's not the best way to do it? Have you other suggestion? Nevertheless, this work fine when running the script from console, but = when I run the script via Apache and Mod_Perl, ssh does not accept to start properly and answers the error messages > Pseudo-terminal will not be allocated because stdin is not a = terminal. # when starting > read: Bad file descriptor # when I do the first ->expect command > ttytype: couldn't open /dev/tty for reading > stty: : Not a typewriter My system is a PC with Linux RH8, Perl 5.8.3 / mod_perl 1.99_12 / = Apache 2.0.48 Is there a better way to initiate a ssh to 1st system and then telnet = to something else and then provide an open FileHandle to = Net::Telnet::Cisco? Thanks in advance. Willy --=20 Willy ROCHE Network Support Problem Management HP Managed Services EMEA Networks ___________________________________ Tel: +33 4 7614 4768 Fax: +33 4 7614 1716 E-Mail: wil...@hp... Hewlett-Packard Grenoble 5, avenue Raymond Chanas 38053 GRENOBLE Cedex 9 http://www.hp.com/hps/network/ > -----Original Message----- > From: Roland Giersig [mailto:RGi...@cp...] > Sent: mercredi 4 f=E9vrier 2004 11:05 > To: exp...@li... > Subject: Re: [Expectperl-discuss] Issue with Expect.pm ssh command > through Apache web >=20 >=20 > ROCHE,WILLY (HP-France,ex1) wrote: >=20 > > Hi Everyone, > >=20 > > I am trying to connect to some equipment through ssh and=20 > want to use Expect. >=20 > Are you sure you HAVE to use Expect? :o) > How about non-interactive ssh commands? >=20 > > It works fine from console, but when starting my perl=20 > script from Apache web > > server it fails. > >=20 > > I have Perl 5.8.3 / mod_perl 1.99_12 / Apache 2.0.48 > >=20 > > Code that works on console but not through the web: > > $exp =3D new Expect; > > $exp->raw_pty(1); > > $exp->spawn ('ssh', '-1', '-A', 'me@otherhost'); > > $exp->expect (10, "\$"); # waiting for the server prompt > > $exp->send ("ls\n"); > > $exp->expect (10, "toto"); # one of the file in ls output > >=20 > > On console, it works fine and exit properly. > > Through web, it does not and ouput following errors: > > Pseudo-terminal will not be allocated because stdin is=20 > not a terminal. > > read: Bad file descriptor > > ttytype: couldn't open /dev/tty for reading > > stty: : Not a typewriter > This is rather strange. What system are you running on? Normally the=20 > spawned program should get the pseudo-terminal as its controlling=20 > terminal... >=20 > > I also try ssh options "-t" and "-T" with no benefits. >=20 > Yes, ssh is very security-concerned and won't read a password from a=20 > non-terminal stdin. But if you set public-key-authentication=20 > so you can=20 > login without a password then it doesn't have to ask for a=20 > password and=20 > it should work. BTW, have you read the Expect FAQ about ssh? ;o) >=20 > Best regards, >=20 > Roland > -- > RGi...@cp... >=20 >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss >=20 |
From: Roland G. <RGi...@cp...> - 2004-02-05 02:37:54
|
ROCHE,WILLY (HP-France,ex1) wrote: > Hi Everyone, > > I am trying to connect to some equipment through ssh and want to use Expect. Are you sure you HAVE to use Expect? :o) How about non-interactive ssh commands? > It works fine from console, but when starting my perl script from Apache web > server it fails. > > I have Perl 5.8.3 / mod_perl 1.99_12 / Apache 2.0.48 > > Code that works on console but not through the web: > $exp = new Expect; > $exp->raw_pty(1); > $exp->spawn ('ssh', '-1', '-A', 'me@otherhost'); > $exp->expect (10, "\$"); # waiting for the server prompt > $exp->send ("ls\n"); > $exp->expect (10, "toto"); # one of the file in ls output > > On console, it works fine and exit properly. > Through web, it does not and ouput following errors: > Pseudo-terminal will not be allocated because stdin is not a terminal. > read: Bad file descriptor > ttytype: couldn't open /dev/tty for reading > stty: : Not a typewriter This is rather strange. What system are you running on? Normally the spawned program should get the pseudo-terminal as its controlling terminal... > I also try ssh options "-t" and "-T" with no benefits. Yes, ssh is very security-concerned and won't read a password from a non-terminal stdin. But if you set public-key-authentication so you can login without a password then it doesn't have to ask for a password and it should work. BTW, have you read the Expect FAQ about ssh? ;o) Best regards, Roland -- RGi...@cp... |
From: ROCHE,WILLY (HP-France,ex1) <wil...@hp...> - 2004-02-02 12:04:23
|
Hi Everyone, I am trying to connect to some equipment through ssh and want to use Expect. It works fine from console, but when starting my perl script from Apache web server it fails. I have Perl 5.8.3 / mod_perl 1.99_12 / Apache 2.0.48 Code that works on console but not through the web: $exp = new Expect; $exp->raw_pty(1); $exp->spawn ('ssh', '-1', '-A', 'me@otherhost'); $exp->expect (10, "\$"); # waiting for the server prompt $exp->send ("ls\n"); $exp->expect (10, "toto"); # one of the file in ls output On console, it works fine and exit properly. Through web, it does not and ouput following errors: Pseudo-terminal will not be allocated because stdin is not a terminal. read: Bad file descriptor ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter I also try ssh options "-t" and "-T" with no benefits. Any idea? Willy |