home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8708 / uniflex-uupc / 1 / dcp.doc next >
Encoding:
Text File  |  1987-08-28  |  3.2 KB  |  73 lines

  1.                         Mini Docs for DCP
  2. ------------------------------------------------------------------------
  3. Three files are needed to use this program.
  4.  
  5. 1.  Compile and link the various modules (see the Makefile for info).
  6.     Call it dcp (I call it uucico on my machine).  Put this file in
  7.     a binary directory with permissions set so that only the uucp user
  8.     can run it.  Normal users should use rmail.  The system uses cron
  9.     and uucp login.
  10.  
  11. 2. Compile and Link rmail.c and put it in a binary directory.  Again
  12.    make the owner uucp (as above) with permissions set.  Rmail should
  13.    have the SUID bit on.  Rmail should have execution privileges for
  14.    others.
  15.  
  16. 3.  Create a file called SYSTEMS in the SPOOLDIR and format it like so:
  17.  
  18.     name-of-other-machine Time-to-call tty type baud protocols-supported
  19.  
  20.     then comes the login sequence.  This is a send/receive cycle.  The
  21.     text has a dash for a delimiter.
  22.  
  23.     a.  The 'name-of-other-machine' should be significant to six
  24.         characters.
  25.  
  26.     b.  The 'time-to-call' field recognizes only two entries.
  27.         These are 'Any' and 'Slave' (notice the caps on first letter).
  28.         In the future this field would contain the hours and day of week
  29.         that a call should be sent.  'Slave' is used to identify the
  30.         machine name given.  The software has code which checks the
  31.         logged in machines name against the list of machines in the SYSTEMS
  32.         file.  If there is a machine that calls you, but you do not call
  33.         them, then an entry is made:
  34.  
  35.         name-of-other-machine Slave
  36.  
  37.     c.  The 'type' field is currently not used but will contain ACU for a
  38.         modem and DIRECT for a direct connection to another machine.
  39.  
  40.     d.  The 'baud' rate is the baud to use when calling.  A default
  41.         rate is used if the number given is not supported.  The default
  42.         rate is 1200.
  43.  
  44.  
  45. The current program expects to find the entry on one line with a maximum
  46. of 132 characters, for example (fictional):
  47.  
  48. ihnp1 Any /dev/tty03 ACU 1200 g ATDT1-405-123-4567\n-1200-x\nx\n-ogin:-uucp\n
  49. -word:-secret\n<CR>
  50. ppmok Slave<CR>
  51.  
  52. In this case I call ihnp1 at anytime using tty03 at 1200 and the 'g' protocol.
  53. first I send ATDT1-405-123-4567\n which the (Hays compatible) modem uses
  54. to dial out.  Then I expect to receive 1200.  This is because my modem
  55. echos CONNECT 1200 when a carrier is detected.  Since their may be some missed
  56. characters, I only compare against the final ones.  Then I send two 'x's
  57. which proved to work at stepping the called modem down from 2400 baud to
  58. 1200 baud.  I did this by experimentation.  The bottom line is you have to
  59. determine the login sequence by calling the other machine and see what works.
  60. After that I expect to see 'ogin:'.  The other machine puts out 'Login:' but
  61. I only compare against 'ogin:'.  I send it 'uucp\n' and it says 'Password:'
  62. and I compare that to 'word:' and send it 'secret\n'.
  63.  
  64. The dcp program is then run using:
  65.  
  66.     dcp mode debug-level
  67.  
  68. The mode is 'master' or 'slave'  and the debug-level is an integer of
  69. 0 to 9.  The defaults if only dcp is typed is 'dcp slave 0'.  In my
  70. implementation I have an user called 'uucp' and instead of forking a
  71. shell at login I fork dcp.  I also have a cron entry which starts up
  72. dcp in the master mode at the required time.
  73.