remote_copy

Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 29 June 2022
Index Return to Main Contents

 

NAME

remote_copy - start a remote copy

 

SYNOPSIS

edrc/lib/remote_copy [ -h ]

remote_copy [ -c cfg_file ] [ -m mode[{,mode}] ] [ -q ] [ -v ] [ -N ] [ -s username ] [ -l username ] file_1 [file_2 ...] dest

remote_copy [ -c cfg_file ] -f -m mode [ -q ] [ -v ] [ -N ] [ -s username ] [ -l username ] file_1 [file_2 ...] dest

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

wrapper for remote copies.

This command enables you to write scripts independent of the current security policy of your systems.

Internally remote_copy uses rcp or scp dependent of the configuration settings.

Furthermore this command provides a caching mechanism which remembers successful connection modes to speed up future connections.

 

OPTIONS

-h
usage message.

-c cfg_file
config file (default=edrc/etc/remote_copy.cfg).

-m mode
connection mode (default=rtools): rtools: rsh, rcp; OpenSSH: ssh, scp; default: default from config file.

-v
verbose output.

-N
do not 'su' to the user given in -s username prior to invoking the connection.

-s username
user to switch to on the local machine.

-f
force connection mode.

-l username
user to log in as on the remote machine.

-q
quiet, no error message output.

file_n
source file.

dest
destination file or directory in the form: [user_name@]hostname:pathname/filename or [user_name@]hostname:pathname/dirname

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

2
operating system not supported.

3
remote system is not up.

4
usage displayed.

5
command aborted.

6
config file not found.

7
cannot log on to remote system.

1##
## exit code of rcp or scp if not successful.

 

FILES

edrc/etc/remote_copy.cfg
configruation file.

edrc/var/connection/security/
connection security files (e.g. SSH keys).

edrc/var/connection/cache/
connection cache files.

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), edrc(1m), edrc.cfg(4), edrcsetup(1m), remote_copy.cfg(4), remote_shell(3), ssh-keyadd(1m)

 

NOTES

-

 

BUGS

-

 

AUTHOR

remote_copy was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2022 by Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:54:12 GMT, August 28, 2024