take(1C) take(1C)
NAME
take - takes a file from a remote machine
SYNOPSIS
take [-i[ID]] [-p port] [-sSPEED] fromfile [tofile]
take [-p port] [-sSPEED] -c command [args] ...
DESCRIPTION
take is part of system of programs useful for transferring
files between UNIX® systems connected by serial lines. It
is the downloader designed to transmit files from a remote
machine to a local machine. For a brief discussion of the
take/put system and installation instructions, see
``Take/Put Reference'' in Oreo Local System Administration.
take transfers a file, directory, or output from a command
given at a remote machine. The default port is /dev/tty0;
the -p flag option may be used to specify an alternate port.
The default speed is determined by the system; the -s flag
option may be used to specify a specific speed. The -i [ID]
flag option remaps pathnames on the remote machine. The ID
(if present) is passed to the remote machine, where it is
used to locate a line containing pathname prefixes (using
the /etc/takelist file discussed below). If no ID is given
after the -i flag, then the default system ID is read from
the /etc/sysid file (if it exists); otherwise, take7 will
use the account name of the invoker (i.e., the person who
logged in to the port used) to determine which line of
/etc/takelist to apply. See the overview document for
details of the mapping.
The -c flag option is useful for executing an arbitrary
command on the remote machine. All arguments following the
-c flag are collected, transmitted to the remote machine and
executed as a single command. The standard output and
standard error from this command are returned as the
standard output and standard error of take.
In order to perform its function, take(1C) interfaces with
the program /usr/bin/take7 on the remote machine.
EXAMPLE
take /a/b/c
takes the contents of the directory (or file) /a/b/c on the
remote machine and copies them into a similarly named
directory (or file) on the local machine; if /a/b/c did not
previously exist on the local machine, it is created;
otherwise, it is overwritten.
take file.c /x/y/z/filename
Page 1 (last mod. 1/16/87)
take(1C) take(1C)
takes the contents of file.c from the remote machine and
copies them into /x/y/z/filename on the local machine. Note
that if filename exists on the local machine, its contents
are overwritten.
FILES
/usr/bin/take
fromfile The remote filename. When using the -i flag
option, this file should usually be specified as
a pathname starting at the root of the local
machine.
tofile The local file name; if tofile is null, tofile
is defaulted to fromfile. If tofile is a
directory, then tofile has the last segment of
the fromfile path appended to it.
SEE ALSO
cu(1C), put(1C)
Oreo Local System Administration Manual.
Page 2 (last mod. 1/16/87)