home *** CD-ROM | disk | FTP | other *** search
- Mini Docs for DCP
- ------------------------------------------------------------------------
- Three files are needed to use this program.
-
- 1. Compile and link the various modules (see the Makefile for info).
- Call it dcp (I call it uucico on my machine). Put this file in
- a binary directory with permissions set so that only the uucp user
- can run it. Normal users should use rmail. The system uses cron
- and uucp login.
-
- 2. Compile and Link rmail.c and put it in a binary directory. Again
- make the owner uucp (as above) with permissions set. Rmail should
- have the SUID bit on. Rmail should have execution privileges for
- others.
-
- 3. Create a file called SYSTEMS in the SPOOLDIR and format it like so:
-
- name-of-other-machine Time-to-call tty type baud protocols-supported
-
- then comes the login sequence. This is a send/receive cycle. The
- text has a dash for a delimiter.
-
- a. The 'name-of-other-machine' should be significant to six
- characters.
-
- b. The 'time-to-call' field recognizes only two entries.
- These are 'Any' and 'Slave' (notice the caps on first letter).
- In the future this field would contain the hours and day of week
- that a call should be sent. 'Slave' is used to identify the
- machine name given. The software has code which checks the
- logged in machines name against the list of machines in the SYSTEMS
- file. If there is a machine that calls you, but you do not call
- them, then an entry is made:
-
- name-of-other-machine Slave
-
- c. The 'type' field is currently not used but will contain ACU for a
- modem and DIRECT for a direct connection to another machine.
-
- d. The 'baud' rate is the baud to use when calling. A default
- rate is used if the number given is not supported. The default
- rate is 1200.
-
-
- The current program expects to find the entry on one line with a maximum
- of 132 characters, for example (fictional):
-
- ihnp1 Any /dev/tty03 ACU 1200 g ATDT1-405-123-4567\n-1200-x\nx\n-ogin:-uucp\n
- -word:-secret\n<CR>
- ppmok Slave<CR>
-
- In this case I call ihnp1 at anytime using tty03 at 1200 and the 'g' protocol.
- first I send ATDT1-405-123-4567\n which the (Hays compatible) modem uses
- to dial out. Then I expect to receive 1200. This is because my modem
- echos CONNECT 1200 when a carrier is detected. Since their may be some missed
- characters, I only compare against the final ones. Then I send two 'x's
- which proved to work at stepping the called modem down from 2400 baud to
- 1200 baud. I did this by experimentation. The bottom line is you have to
- determine the login sequence by calling the other machine and see what works.
- After that I expect to see 'ogin:'. The other machine puts out 'Login:' but
- I only compare against 'ogin:'. I send it 'uucp\n' and it says 'Password:'
- and I compare that to 'word:' and send it 'secret\n'.
-
- The dcp program is then run using:
-
- dcp mode debug-level
-
- The mode is 'master' or 'slave' and the debug-level is an integer of
- 0 to 9. The defaults if only dcp is typed is 'dcp slave 0'. In my
- implementation I have an user called 'uucp' and instead of forking a
- shell at login I fork dcp. I also have a cron entry which starts up
- dcp in the master mode at the required time.
-