mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #6559 from cxhong/stty
Remove stty command from Expect process
This commit is contained in:
commit
059b7062eb
@ -382,7 +382,6 @@ sub cumulus_connect {
|
||||
|
||||
$ssh->debug(0);
|
||||
$ssh->log_stdout(0); # suppress stdout output..
|
||||
$ssh->slave->stty(qw(sane -echo));
|
||||
|
||||
unless ($ssh->spawn($command, @parameters))
|
||||
{
|
||||
|
@ -826,7 +826,6 @@ sub session_connect {
|
||||
|
||||
$ssh->debug(0);
|
||||
$ssh->log_stdout(0); # suppress stdout output..
|
||||
$ssh->slave->stty(qw(sane -echo));
|
||||
|
||||
unless ($ssh->spawn($command, @parameters))
|
||||
{
|
||||
@ -1485,8 +1484,8 @@ sub netcfg_for_irpdu {
|
||||
|
||||
my $mypdu = new Expect;
|
||||
|
||||
$mypdu->log_stdout(1); # suppress stdout output..
|
||||
$mypdu->slave->stty(qw(sane -echo));
|
||||
$mypdu->debug(0);
|
||||
$mypdu->log_stdout(0); # suppress stdout output..
|
||||
|
||||
unless ($mypdu->spawn($login_cmd))
|
||||
{
|
||||
|
@ -409,7 +409,8 @@ sub config_snmp {
|
||||
my $cfg_access3="snmp-server access 5 security usm\r";
|
||||
my $cfg_access4="snmp-server access 5 read-view iso\r";
|
||||
|
||||
$mysw->slave->stty(qw(sane -echo));
|
||||
$mysw->debug(0);
|
||||
$mysw->log_stdout(0); # suppress stdout output..
|
||||
|
||||
unless ($mysw->spawn($login_cmd))
|
||||
{
|
||||
@ -522,7 +523,8 @@ sub config_G8264 {
|
||||
my $main_prompt="Main#";
|
||||
my $authpw_cmd = "/cfg/sys/ssnmp/snmpv3/usm 5/authpw\r";
|
||||
|
||||
$mysw->slave->stty(qw(sane -echo));
|
||||
$mysw->debug(0);
|
||||
$mysw->log_stdout(0); # suppress stdout output..
|
||||
|
||||
unless ($mysw->spawn($login_cmd))
|
||||
{
|
||||
|
@ -226,7 +226,6 @@ sub cumulus_connect {
|
||||
|
||||
$ssh->debug(0);
|
||||
$ssh->log_stdout(0); # suppress stdout output..
|
||||
$ssh->slave->stty(qw(sane -echo));
|
||||
|
||||
unless ($ssh->spawn($command, @parameters))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user