in reply to Re: scp output without having to use "Net::SCP" in Perl
in thread scp output without having to use "Net::SCP" in Perl

I did, wondering why this did not work: system("/usr/bin/scp",$output,"$USER\@$host:/tmp/LOGS/"); I get the following: scp: illegal option -- w usage: scp -1246BCpqrv -c cipher -F ssh_config -i identity_file -l limit -o ssh_option -P port -S program [user@host1:]file1 ... [user@host2:]file2
  • Comment on Re^2: scp output without having to use "Net::SCP" in Perl

Replies are listed 'Best First'.
Re^3: scp output without having to use "Net::SCP" in Perl
by salva (Canon) on Jun 03, 2015 at 07:33 UTC
    Try adding a double dash after the command to stop option processing:
    system("/usr/bin/scp", "--", $output, "$USER\@$host:/tmp/LOGS/");