U
usaims
Hello:
I'm using the Net::SSH module. Its really a simple script. It supposed
to ssh into a node and do a 'df -k', but I'm getting:
bash: -c: line 1: syntax error near unexpected token `0x925c4c8'
bash: -c: line 1: `CODE(0x925c4c8)'
The above is a bash error, so I'm thinking PERL is not even invoked in
the subroutine, any help will be greatly appreciated.
################################################
#!/usr/bin/perl -w
use warnings;
use strict;
use Net::SSH qw(ssh issh sshopen2 sshopen3);
my $variable = \&TEST;
ssh('[email protected]', $variable);
sub TEST {
`df -h`;
}
I'm using the Net::SSH module. Its really a simple script. It supposed
to ssh into a node and do a 'df -k', but I'm getting:
bash: -c: line 1: syntax error near unexpected token `0x925c4c8'
bash: -c: line 1: `CODE(0x925c4c8)'
The above is a bash error, so I'm thinking PERL is not even invoked in
the subroutine, any help will be greatly appreciated.
################################################
#!/usr/bin/perl -w
use warnings;
use strict;
use Net::SSH qw(ssh issh sshopen2 sshopen3);
my $variable = \&TEST;
ssh('[email protected]', $variable);
sub TEST {
`df -h`;
}