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

Sorry about the "use", that was just a mistype. But anyways, I have tried the:
my $dig_output = issh("$user\@$host", "$cmd")
..and it prints out a zero??? And I would use sshopen2() or sshopen3() but all I need to do is perform the one command. Also, if I use those I will have to setup access keys, which would be quite tedious for my finished program.. By the way, your 2 cents are quite helpful.... And sorry about the chop/chomp, I'm very new to perl, just trying to write something to make my life a little easier.. Thanks

Replies are listed 'Best First'.
Re: Re: Re: Set a variable to remote information
by sauoq (Abbot) on Jul 02, 2003 at 16:11 UTC
    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.";
    
      Wow... Thanks you soo much. I got what I wanted plus I don't have to (U)se Net::SSH ;) Thanx, John