|Keep It Simple, Stupid|
Re^2: Net::SSH::Perl doesn't execute commandsby bluethundr (Pilgrim)
|on Jun 09, 2010 at 03:54 UTC||Need Help??|
Ok then! Thanks for the very valuable input!
Ok, so I am able to issue commands to the load balancer software (which is a proprietary software layer sitting on top of a BSD core) via ssh and this is what I get:
So something like this would be the desired output of my little script.
But when I run my script the output would indicate that it's not finding the netscaler commands:
And when I execute a unix shell and do a find on the "show" command it turns up nothing, nada:
So my question would be, why does plain old ssh find the netscaler commands when I issue them on the command line, but Net::SSH::Perl does not find them when issued from my script? Also it should be noted that I changed the quote (") marks to backticks (`) in the Net::SSH::Perl commands.
$ssh->cmd("show lb vserver $csvserver");
$ssh->cmd(`show lb vserver $csvserver`);
Right now I only have output for the latter and not the former. I can get you the other input (with the quotes) if you feel it's important. Rather late, and retiring right now and picking this up again tomorrow. Thanks for your help!