home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR35
/
PCUCP101.ZIP
/
D-USE.DOC
< prev
next >
Wrap
Text File
|
1993-03-08
|
7KB
|
188 lines
Starting the program
---------------------------------------------------------------------
To start pcucp use the command line
pcucp [config file]
where [config file] is an optional argument specifying the
configuration file to be used. The configuration file name
should not include the ".cfg"-suffix, which is automaticly
added. If no configuration file is specfied, the settings
in the default configuration file apply. (For configuration
file details, see CONFIG.DOC.)
General
---------------------------------------------------------------------
The user-interface consists of full-screen text-windows and
the menu, through which commands are entered.
The menu can be summoned from any window by holding down the
Ctrl- and Alt-keys. The menu commands are selected by typing
the letter highlighted in the menu item while still holding
the Ctrl- and Alt-keys down. A menu command can be aborted by
releasing the Ctrl- and Alt-keys before the command is complete.
The commands available through the menu are :
Next-window - Switch to the next window.
Previous-window - Switch to the previous window.
Options/Exit - Exit to dos.
Options/Shell - Execute dos shell.
Options/Connect - Attempt connection.
Options/Disconnect - Close existing connection.
Options/File-transfer/Start - Begin file transfer.
Options/File-transfer/Stop - Stop file transfer.
Options/Transmit-break - Transmit break (250 ms).
Window/Kill - Close the current window.
Window/Tty-session - Create a new tty-session (unix-shell).
Note that usually only a subset of all commands depending of the
state of the program is available. E.g. the windows-menu appears
only after a connection to a host is established.
Moving between windows
---------------------------------------------------------------------
You can use either the menu commands Next-Window and Previous-
Window, or Ctrl-Alt-N (N = 0 - 9) to move directly to a window.
Pcucp main window
---------------------------------------------------------------------
The main window displays various messages, such as error
messages and messages related to the progress of file
transfer. In the unix-end, these messages are written in
the file pcucp.log in PCUCPDIR.
Connecting
---------------------------------------------------------------------
In addition to the Pcucp main window, an initial terminal
window (Terminal(0)) is created at startup. Use this window
to log in your unix host. After login run the unix executable
of pcucp (possibly with a configuration file name as command
line argument). Provided that no error occurs, you should
quite instantly see a message like :
[pcucp : you have 10 seconds to connect]
Now select Options/Connect. After few seconds you should see
a message in the main window :
connect : connected to <host>
If so, a connection is established. If connection times out,
the configuration files in the unix- and the pc-end are
probably inconsistent.
After the connection, a shell is automaticly executed in the
initial terminal window. If not, the configuration files in
both ends don't probably match.
Disconnecting
---------------------------------------------------------------------
To disconnect, select Options/Disconnect. After a few seconds
you should see a message in the main window :
disconnect : ok
The initial terminal window now resumes the login shell.
If disconnecting fails, processes may be left running on
your unix host. If this happens, go check this with the ps
command and kill any uneccessary processes.
New Tty sessions (unix-shells)
---------------------------------------------------------------------
Select Windows/Tty session. A new terminal window with a shell
should appear before long.
Removing Tty sessions (unix-shells)
---------------------------------------------------------------------
Exiting from the unix-shell is the preferred method for
closing a tty-window. A window can also be closed by
selecting Window/Kill. If you try to close the initial
terminal window, the unix process is terminated, but the
window remains. Next time a new tty session is created,
the initial terminal window is used for the session.
Dos shell
---------------------------------------------------------------------
A dos shell is executed with Options/Shell. This is useful e.g.
if you want to copy new files to be sent while in pcucp. Note,
that pcucp is completely stopped while you are using the shell
and hence file transfer does not proceed and the terminal windows
are not updated. No data is lost, however, since the unix-end
keeps on resending the packets until pcucp is back on-line.
File transfer
---------------------------------------------------------------------
The pcucp uses two directories in both the unix and dos end
for file transfer. One of the directories (OUTDIR) contains
the files to be sent to the remote system, while the other
(INDIR) is used to store the files received from the remote
system.
Pcucp sends the files in OUTDIR one by one to the remote
system and then DELETES the file sent. Hence, if you
want to keep a copy of a file after the file has been sent,
copy the file to OUTDIR. If not, move the file to OUTDIR.
In the unix end, the copying a file is best done by
creating a (symbolic) link in OUTDIR (ln (-s)). In dos
you'll just have to keep two copies during the transfer.
The file transfer has an automatic restart feature, which
works as follows : If there is a file with the same name as
the incoming file in INDIR and the file times match, the
file in INDIR is assumed to be the starting part of the
incoming file and only the missing part (incoming file size
- INDIR file size) is transfered.
If the file times do not match, the existing file is renamed
by replacing the last character of the filename with a tilde
(~). If a file with this name already exists in INDIR, it is
first deleted.
The file transfer must be explicitly started with Options/
File transfer/start. File transfer can be explicitly stopped
using Options/File transfer/stop. File transfer is automaticly
stopped when disconnecting.
If you want to remove/add/modify files in INDIR or OUTDIR, be
sure to leave alone the file being currently transfered. It
is safest to stop file transfer first to avoid errors.
Note that Pcucp has no BINARY/TEXT file types. All files are
transfered 'as is' without any conversions.
---------------------------------------------------------------------
This file is a part of Pcucp, Copyright (C) 1992 Jouni Leppäjärvi
---------------------------------------------------------------------