Re: Net::SSH::Perl sending output to STDOUT
From: Martin Kissner (news_at_chaos-net.de)
Date: 02/09/05
- Next message: Matt Benson: "How to display the each executed line of a shell script?"
- Previous message: Tad McClellan: "Re: Now what am I doing wrong"
- In reply to: ryanmhuc_at_yahoo.com: "Re: Net::SSH::Perl sending output to STDOUT"
- Next in thread: ryanmhuc_at_yahoo.com: "Re: Net::SSH::Perl sending output to STDOUT"
- Reply: ryanmhuc_at_yahoo.com: "Re: Net::SSH::Perl sending output to STDOUT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 9 Feb 2005 00:54:12 +0100
ryanmhuc@yahoo.com wrote :
> Thanks for the script but it does the same thing.
What same thing?
> If the password is
> incorrect for the login i get:
> "Permission denied at test.pl line 43"
> and then it stops the program.
What do you expect? If the pw is incorrect you should't be able to log
in, should you?
> The issue is I need to catch this. The
> script I'm trying to create logins into about 16 different servers.
> These servers passwords are not supposed to change but every once in a
> while one does. I want the program to not die when it can't login to
> the server but instead trap it, let me know and then continue with the
> script.
Then you should probably check for success.
if (your command) {
do stuff;
}
else {
do other stuff;
}
btw:
You'd probably increase your chances of getting qualified help by
avoiding TOFU quoting an providing some code example.
HTH
Martin
[ TOFU snipped ]
-- perl -e 'print 7.74.117.115.116.11.32.13.97.110.111.116.104.101.114.11 .32.13.112.101.114.108.11.32.13.104.97.99.107.101.114.10.7'
- Next message: Matt Benson: "How to display the each executed line of a shell script?"
- Previous message: Tad McClellan: "Re: Now what am I doing wrong"
- In reply to: ryanmhuc_at_yahoo.com: "Re: Net::SSH::Perl sending output to STDOUT"
- Next in thread: ryanmhuc_at_yahoo.com: "Re: Net::SSH::Perl sending output to STDOUT"
- Reply: ryanmhuc_at_yahoo.com: "Re: Net::SSH::Perl sending output to STDOUT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|