TABLE OF CONTENTS


::pwtk::rcp

SYNOPSIS

proc ::pwtk::rcp {from to} {

PURPOSE

Remote copy (aka scp or rcp).

The executable and its options for remote copying are defined by the remote(rcp) variable in $PWTK/config/remote.tcl or ~/.pwtk/remote.tcl.

EXAMPLES

   ::pwtk::rcp  user@host:from  to
   ::pwtk::rcp  from  user@host:to

SOURCE

    variable remote
    try_exec -ignorestderr -- {*}$remote(rcp) $from $to
}