getting bash errors

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`;
}
 
P

Peter J. Holzer

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)'

This was already explained to you a few days ago. Why do you think you
will get a different answer if you start a new thread?

hp
 
U

usaims

This was already explained to you a few days ago. Why do you think you
will get a different answer if you start a new thread?

Sorry, I didn't see Anno's reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top