Mike McDonald
Mike McDonald

Reputation: 21

Perl NET::SFTP::FOREIGN execute remote perl script

Is there any way to run a remote perl script using NET::SFTP::FOREIGN??

I know there are modules like SSH::EXPECT that would accomplish this, however I'm limited to very few modules that are pre-installed (I don't have permissions to install more).

Upvotes: 1

Views: 456

Answers (1)

numeric illustration
numeric illustration

Reputation: 326

It doesn't seem to support that from looking at the docs on cpan for it. However you can

  1. Use ssh commands via Perl's system() or even IPC::Run3 if you have that installed
  2. see if you have a version of Net::OpenSSH installed already which is by the same author.

I've used all these methods with success.

Upvotes: 2

Related Questions