in reply to execute remote perl script via ssh

Make it easy on yourself and set up an ssh config. It might be worth using cygwin or even Docker and a super light alpine image running cron.

Replies are listed 'Best First'.
Re^2: execute remote perl script via ssh
by syphilis (Archbishop) on Jul 27, 2020 at 00:38 UTC
    Make it easy on yourself and set up an ssh config. It might be worth using Cygwin

    On my Windows 7 box I use Cygwin in precisely that way for ssh connections to various nix machines. It works well. I envisage that it would also work equally well from an MSYS2 installation.

    For scripted communication between Windows and nix I usually use Net::SSH2 or Net::SSH::Any (which utilizes Net::SSH2 via a more user-friendly interface), run from a native Windows cmd.exe shell.

    Cheers,
    Rob