Execute Perl script on remote server from local machine

前端 未结 2 1023
情深已故
情深已故 2021-01-19 14:09

I am rather new to Perl and translating some bash scripts to parse Apache logs from several remote production servers into a more useful format for processing on a local mac

2条回答
  •  时光取名叫无心
    2021-01-19 14:44

    Net::SSH is ssh executable wrapper, and there are better solutions for perl nowadays.

    http://search.cpan.org/~remi/Net-SSH2-Simple/lib/Net/SSH2/Simple.pm#SYNOPSIS

    my ($stdout,$stderr, $exitcode) = $ssh2->cmd("perl -e $crawler") 
      or die $ssh2->error;
    

提交回复
热议问题