Help for this page

Select Code to Download


  1. or download this
      my $rcp_command = "rcp $file $username@$hostname:$destfile";
      #  perl will be interpreting this     ^
      system( $rcp_command );
    
  2. or download this
    system("rcp", $file, "$username\@$hostname:$destfile") == 0
      or die "Failed to rcp: $?"