in reply to Re: Re: Set a variable to remote information
in thread Set a variable to remote information

But anyways, I have tried the:
my $dig_output = issh("$user\@$host", "$cmd")
..and it prints out a zero???

Uhm... where did you get that from? It wasn't what I suggested... ;-)

My suggestion was to forego the use of Net::SSH and just use a qx() or backticks instead. Since all you want is the output from the one command, that might prove to be much easier.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Thanx..
by needhelp (Initiate) on Jul 02, 2003 at 16:33 UTC
    Wow... Thanks you soo much. I got what I wanted plus I don't have to (U)se Net::SSH ;) Thanx, John