home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / textfile / faqs / unix_faq / faq / part4 < prev    next >
Encoding:
Text File  |  1992-12-27  |  23.9 KB  |  574 lines

  1. Xref: bloom-picayune.mit.edu comp.unix.questions:51336 comp.unix.shell:8342 news.answers:4778
  2. Path: bloom-picayune.mit.edu!senator-bedfellow.mit.edu!senator-bedfellow.mit.edu!usenet
  3. From: tmatimar@empress.com (Ted M A Timar)
  4. Newsgroups: comp.unix.questions,comp.unix.shell,news.answers
  5. Subject: Unix - Frequently Asked Questions (4/7) [Frequent posting]
  6. Supersedes: <unix-faq/faq/part4_723967331@athena.mit.edu>
  7. Followup-To: comp.unix.questions
  8. Date: 24 Dec 1992 06:03:15 GMT
  9. Organization: Empress Software
  10. Lines: 555
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 21 Jan 1993 06:02:09 GMT
  14. Message-ID: <unix-faq/faq/part4_725176929@athena.mit.edu>
  15. References: <unix-faq/faq/contents_725176929@athena.mit.edu>
  16. NNTP-Posting-Host: pit-manager.mit.edu
  17. X-Last-Updated: 1992/12/09
  18.  
  19. Archive-name: unix-faq/faq/part4
  20. Version: $Id: part4,v 2.1 92/12/04 07:43:53 tmatimar Exp $
  21.  
  22. These seven articles contain the answers to some Frequently Asked
  23. Questions often seen in comp.unix.questions and comp.unix.shell.
  24. Please don't ask these questions again, they've been answered plenty
  25. of times already - and please don't flame someone just because they may
  26. not have read this particular posting.  Thank you.
  27.  
  28. These articles are divided approximately as follows:
  29.  
  30.       1.*) General questions.
  31.       2.*) Relatively basic questions, likely to be asked by beginners.
  32.       3.*) Intermediate questions.
  33.       4.*) Advanced questions, likely to be asked by people who thought
  34.        they already knew all of the answers.
  35.       5.*) Questions pertaining to the various shells, and the differences.
  36.       6.*) An overview of Unix variants.
  37.       7.*) An comparison of configuration management systems (RCS, SCCS).
  38.  
  39. This article includes answers to:
  40.  
  41.       4.1)  How do I read characters from a terminal without requiring the user
  42.               to hit RETURN?
  43.       4.2)  How do I check to see if there are characters to be read without
  44.               actually reading?
  45.       4.3)  How do I find the name of an open file?
  46.       4.4)  How can an executing program determine its own pathname?
  47.       4.5)  How do I use popen() to open a process for reading AND writing?
  48.       4.6)  How do I sleep() in a C program for less than one second?
  49.       4.7)  How can I get setuid shell scripts to work?
  50.       4.8)  How can I find out which user or process has a file open or is using
  51.             a particular file system (so that I can unmount it?)
  52.       4.9)  How do I keep track of people who are fingering me?
  53.       4.10) Is it possible to reconnect a process to a terminal after it has
  54.             been disconnected, e.g. after starting a program in the background
  55.             and logging out?
  56.       4.11) Is it possible to "spy" on a terminal, displaying the output
  57.             that's appearing on it on another terminal?
  58.  
  59. If you're looking for the answer to, say, question 4.5, and want to skip
  60. everything else, you can search ahead for the regular expression "^4.5)".
  61.  
  62. While these are all legitimate questions, they seem to crop up in
  63. comp.unix.questions or comp.unix.shell on an annual basis, usually
  64. followed by plenty of replies (only some of which are correct) and then
  65. a period of griping about how the same questions keep coming up.  You
  66. may also like to read the monthly article "Answers to Frequently Asked
  67. Questions" in the newsgroup "news.announce.newusers", which will tell
  68. you what "UNIX" stands for.
  69.  
  70. With the variety of Unix systems in the world, it's hard to guarantee
  71. that these answers will work everywhere.  Read your local manual pages
  72. before trying anything suggested here.  If you have suggestions or
  73. corrections for any of these answers, please send them to to
  74. tmatimar@empress.com.
  75.  
  76. 4.1)  How do I read characters from a terminal without requiring the user
  77.       to hit RETURN?
  78.  
  79.       Check out cbreak mode in BSD, ~ICANON mode in SysV.
  80.  
  81.       If you don't want to tackle setting the terminal parameters
  82.       yourself (using the "ioctl(2)" system call) you can let the stty
  83.       program do the work - but this is slow and inefficient, and you
  84.       should change the code to do it right some time:
  85.  
  86.       #include <stdio.h>
  87.       main()
  88.       {
  89.         int c;
  90.  
  91.         printf("Hit any character to continue\n");
  92.         /*
  93.          * ioctl() would be better here; only lazy
  94.          * programmers do it this way:
  95.          */
  96.         system("/bin/stty cbreak");        /* or "stty raw" */
  97.         c = getchar();
  98.         system("/bin/stty -cbreak");
  99.         printf("Thank you for typing %c.\n", c);
  100.  
  101.         exit(0);
  102.       }
  103.  
  104.       You might like to check out the documentation for the "curses"
  105.       library of portable screen functions.  Often if you're interested
  106.       in single-character I/O like this, you're also interested in
  107.       doing some sort of screen display control, and the curses library
  108.       provides various portable routines for both functions.
  109.  
  110. 4.2)  How do I check to see if there are characters to be read without
  111.       actually reading?
  112.  
  113.       Certain versions of UNIX provide ways to check whether characters
  114.       are currently available to be read from a file descriptor.  In
  115.       BSD, you can use select(2).  You can also use the FIONREAD ioctl
  116.       (see tty(4)), which returns the number of characters waiting to
  117.       be read, but only works on terminals, pipes and sockets.  In
  118.       System V Release 3, you can use poll(2), but that only works on
  119.       streams.  In Xenix - and therefore Unix SysV r3.2 and later - the
  120.       rdchk() system call reports whether a read() call on a given file
  121.       descriptor will block.
  122.  
  123.       There is no way to check whether characters are available to be
  124.       read from a FILE pointer.  (You could poke around inside stdio
  125.       data structures to see if the input buffer is nonempty, but that
  126.       wouldn't work since you'd have no way of knowing what will happen
  127.       the next time you try to fill the buffer.)
  128.  
  129.       Sometimes people ask this question with the intention of writing
  130.         if (characters available from fd)
  131.             read(fd, buf, sizeof buf);
  132.       in order to get the effect of a nonblocking read.  This is not
  133.       the best way to do this, because it is possible that characters
  134.       will be available when you test for availability, but will no
  135.       longer be available when you call read.  Instead, set the
  136.       O_NDELAY flag (which is also called FNDELAY under BSD) using the
  137.       F_SETFL option of fcntl(2).  Older systems (Version 7, 4.1 BSD)
  138.       don't have O_NDELAY; on these systems the closest you can get to
  139.       a nonblocking read is to use alarm(2) to time out the read.
  140.  
  141. 4.3)  How do I find the name of an open file?
  142.  
  143.       In general, this is too difficult.  The file descriptor may
  144.       be attached to a pipe or pty, in which case it has no name.
  145.       It may be attached to a file that has been removed.  It may
  146.       have multiple names, due to either hard or symbolic links.
  147.  
  148.       If you really need to do this, and be sure you think long
  149.       and hard about it and have decided that you have no choice,
  150.       you can use find with the -inum and possibly -xdev option,
  151.       or you can use ncheck, or you can recreate the functionality
  152.       of one of these within your program.  Just realize that
  153.       searching a 600 megabyte filesystem for a file that may not
  154.       even exist is going to take some time.
  155.  
  156. 4.4)  How can an executing program determine its own pathname?
  157.  
  158.       Your program can look at argv[0]; if it begins with a "/", it is
  159.       probably the absolute pathname to your program, otherwise your
  160.       program can look at every directory named in the environment
  161.       variable PATH and try to find the first one that contains an
  162.       executable file whose name matches your program's argv[0] (which
  163.       by convention is the name of the file being executed).  By
  164.       concatenating that directory and the value of argv[0] you'd
  165.       probably have the right name.
  166.  
  167.       You can't really be sure though, since it is quite legal for one
  168.       program to exec() another with any value of argv[0] it desires.
  169.       It is merely a convention that new programs are exec'd with the
  170.       executable file name in argv[0].
  171.  
  172.       For instance, purely a hypothetical example:
  173.     
  174.     #include <stdio.h>
  175.     main()
  176.     {
  177.         execl("/usr/games/rogue", "vi Thesis", (char *)NULL);
  178.     }
  179.  
  180.       The executed program thinks its name (its argv[0] value) is
  181.       "vi Thesis".   (Certain other programs might also think that
  182.       the name of the program you're currently running is "vi Thesis",
  183.       but of course this is just a hypothetical example, don't
  184.       try it yourself :-)
  185.  
  186. 4.5)  How do I use popen() to open a process for reading AND writing?
  187.  
  188.       The problem with trying to pipe both input and output to an
  189.       arbitrary slave process is that deadlock can occur, if both
  190.       processes are waiting for not-yet-generated input at the same
  191.       time.  Deadlock can be avoided only by having BOTH sides follow a
  192.       strict deadlock-free protocol, but since that requires
  193.       cooperation from the processes it is inappropriate for a
  194.       popen()-like library function.
  195.  
  196.       The 'expect' distribution includes a library of functions that a
  197.       C programmer can call directly.  One of the functions does the
  198.       equivalent of a popen for both reading and writing.  It uses ptys
  199.       rather than pipes, and has no deadlock problem.  It's portable to
  200.       both BSD and SV.  See the next answer for more about 'expect'.
  201.  
  202. 4.6)  How do I sleep() in a C program for less than one second?
  203.  
  204.       The first thing you need to be aware of is that all you can
  205.       specify is a MINIMUM amount of delay; the actual delay will
  206.       depend on scheduling issues such as system load, and could be
  207.       arbitrarily large if you're unlucky.
  208.  
  209.       There is no standard library function that you can count on in
  210.       all environments for "napping" (the usual name for short
  211.       sleeps).  Some environments supply a "usleep(n)" function which
  212.       suspends execution for n microseconds.  If your environment
  213.       doesn't support usleep(), here are a couple of implementations
  214.       for BSD and System V environments.
  215.  
  216.       The following code is adapted from Doug Gwyn's System V emulation
  217.       support for 4BSD and exploits the 4BSD select() system call.
  218.       Doug originally called it 'nap()'; you probably want to call it
  219.       "usleep()";
  220.  
  221.       /*
  222.         usleep -- support routine for 4.2BSD system call emulations
  223.         last edit:    29-Oct-1984    D A Gwyn
  224.       */
  225.  
  226.       extern int    select();
  227.  
  228.       int
  229.       usleep( usec )                /* returns 0 if ok, else -1 */
  230.         long        usec;        /* delay in microseconds */
  231.         {
  232.         static struct            /* `timeval' */
  233.             {
  234.             long    tv_sec;        /* seconds */
  235.             long    tv_usec;    /* microsecs */
  236.             }    delay;        /* _select() timeout */
  237.  
  238.         delay.tv_sec = usec / 1000000L;
  239.         delay.tv_usec = usec % 1000000L;
  240.  
  241.         return select( 0, (long *)0, (long *)0, (long *)0, &delay );
  242.         }
  243.  
  244.       On System V you might do it this way:
  245.  
  246.       /*
  247.       subseconds sleeps for System V - or anything that has poll()
  248.       Don Libes, 4/1/1991
  249.  
  250.       The BSD analog to this function is defined in terms of
  251.       microseconds while poll() is defined in terms of milliseconds.
  252.       For compatibility, this function provides accuracy "over the long
  253.       run" by truncating actual requests to milliseconds and
  254.       accumulating microseconds across calls with the idea that you are
  255.       probably calling it in a tight loop, and that over the long run,
  256.       the error will even out.
  257.  
  258.       If you aren't calling it in a tight loop, then you almost
  259.       certainly aren't making microsecond-resolution requests anyway,
  260.       in which case you don't care about microseconds.  And if you did,
  261.       you wouldn't be using UNIX anyway because random system
  262.       indigestion (i.e., scheduling) can make mincemeat out of any
  263.       timing code.
  264.  
  265.       Returns 0 if successful timeout, -1 if unsuccessful.
  266.  
  267.       */
  268.  
  269.       #include <poll.h>
  270.  
  271.       int
  272.       usleep(usec)
  273.       unsigned int usec;        /* microseconds */
  274.       {
  275.         static subtotal = 0;    /* microseconds */
  276.         int msec;            /* milliseconds */
  277.  
  278.         /* 'foo' is only here because some versions of 5.3 have
  279.          * a bug where the first argument to poll() is checked
  280.          * for a valid memory address even if the second argument is 0.
  281.          */
  282.         struct pollfd foo;
  283.  
  284.         subtotal += usec;
  285.         /* if less then 1 msec request, do nothing but remember it */
  286.         if (subtotal < 1000) return(0);
  287.         msec = subtotal/1000;
  288.         subtotal = subtotal%1000;
  289.         return poll(&foo,(unsigned long)0,msec);
  290.       }
  291.  
  292.       Another possibility for nap()ing on System V, and probably other
  293.       non-BSD Unices is Jon Zeeff's s5nap package, posted to
  294.       comp.sources.misc, volume 4.  It does require a installing a
  295.       device driver, but works flawlessly once installed.  (Its
  296.       resolution is limited to the kernel HZ value, since it uses the
  297.       kernel delay() routine.)
  298.  
  299. 4.7)  How can I get setuid shell scripts to work?
  300.  
  301.       [ This is a long answer, but it's a complicated and frequently-asked
  302.         question.  Thanks to Maarten Litmaath for this answer, and
  303.         for the "indir" program mentioned below. ]
  304.  
  305.       Let us first assume you are on a UNIX variant (e.g. 4.3BSD or
  306.       SunOS) that knows about so-called `executable shell scripts'.
  307.       Such a script must start with a line like:
  308.  
  309.     #!/bin/sh
  310.  
  311.       The script is called `executable' because just like a real (binary)
  312.       executable it starts with a so-called `magic number' indicating
  313.       the type of the executable.  In our case this number is `#!' and
  314.       the OS takes the rest of the first line as the interpreter for
  315.       the script, possibly followed by 1 initial option like:
  316.  
  317.     #!/bin/sed -f
  318.  
  319.       Suppose this script is called `foo' and is found in /bin,
  320.       then if you type:
  321.  
  322.     foo arg1 arg2 arg3
  323.  
  324.       the OS will rearrange things as though you had typed:
  325.  
  326.     /bin/sed -f /bin/foo arg1 arg2 arg3
  327.  
  328.       There is one difference though: if the setuid permission bit for
  329.       `foo' is set, it will be honored in the first form of the
  330.       command; if you really type the second form, the OS will honor
  331.       the permission bits of /bin/sed, which is not setuid, of course.
  332.  
  333.       ----------
  334.  
  335.       OK, but what if my shell script does NOT start with such a `#!'
  336.       line or my OS does not know about it?
  337.  
  338.       Well, if the shell (or anybody else) tries to execute it, the OS
  339.       will return an error indication, as the file does not start with
  340.       a valid magic number.  Upon receiving this indication the shell
  341.       ASSUMES the file to be a shell script and gives it another try:
  342.  
  343.     /bin/sh shell_script arguments
  344.  
  345.       But we have already seen that a setuid bit on `shell_script' will
  346.       NOT be honored in this case!
  347.  
  348.       ----------
  349.  
  350.       Right, but what about the security risks of setuid shell scripts?
  351.  
  352.       Well, suppose the script is called `/etc/setuid_script', starting
  353.       with:
  354.  
  355.     #!/bin/sh
  356.     
  357.       Now let us see what happens if we issue the following commands:
  358.  
  359.     $ cd /tmp
  360.     $ ln /etc/setuid_script -i
  361.     $ PATH=.
  362.     $ -i
  363.  
  364.       We know the last command will be rearranged to:
  365.  
  366.     /bin/sh -i
  367.  
  368.       But this command will give us an interactive shell, setuid to the
  369.       owner of the script!
  370.       Fortunately this security hole can easily be closed by making the
  371.       first line:
  372.  
  373.     #!/bin/sh -
  374.  
  375.       The `-' signals the end of the option list: the next argument `-i'
  376.       will be taken as the name of the file to read commands from, just
  377.       like it should!
  378.  
  379.       ---------
  380.  
  381.       There are more serious problems though:
  382.  
  383.     $ cd /tmp
  384.     $ ln /etc/setuid_script temp
  385.     $ nice -20 temp &
  386.     $ mv my_script temp
  387.  
  388.       The third command will be rearranged to:
  389.  
  390.     nice -20 /bin/sh - temp
  391.  
  392.       As this command runs so slowly, the fourth command might be able
  393.       to replace the original `temp' with `my_script' BEFORE `temp' is
  394.       opened by the shell!  There are 4 ways to fix this security hole:
  395.  
  396.     1)  let the OS start setuid scripts in a different, secure way
  397.         - System V R4 and 4.4BSD use the /dev/fd driver to pass the
  398.         interpreter a file descriptor for the script
  399.  
  400.     2)  let the script be interpreted indirectly, through a frontend
  401.         that makes sure everything is all right before starting the
  402.         real interpreter - if you use the `indir' program from
  403.         comp.sources.unix the setuid script will look like this:
  404.  
  405.         #!/bin/indir -u
  406.         #?/bin/sh /etc/setuid_script
  407.  
  408.     3)  make a `binary wrapper': a real executable that is setuid and
  409.         whose only task is to execute the interpreter with the name of
  410.         the script as an argument
  411.  
  412.     4)  make a general `setuid script server' that tries to locate the
  413.         requested `service' in a database of valid scripts and upon
  414.         success will start the right interpreter with the right
  415.         arguments.
  416.  
  417.       ---------
  418.  
  419.       Now that we have made sure the right file gets interpreted, are
  420.       there any risks left?
  421.  
  422.       Certainly!  For shell scripts you must not forget to set the PATH
  423.       variable to a safe path explicitly.  Can you figure out why?
  424.       Also there is the IFS variable that might cause trouble if not
  425.       set properly.  Other environment variables might turn out to
  426.       compromise security as well, e.g. SHELL...  Furthermore you must
  427.       make sure the commands in the script do not allow interactive
  428.       shell escapes!  Then there is the umask which may have been set
  429.       to something strange...
  430.  
  431.       Etcetera.  You should realise that a setuid script `inherits' all
  432.       the bugs and security risks of the commands that it calls!
  433.  
  434.       All in all we get the impression setuid shell scripts are quite a
  435.       risky business!  You may be better off writing a C program instead!
  436.  
  437. 4.8)  How can I find out which user or process has a file open or is using
  438.       a particular file system (so that I can unmount it?)
  439.  
  440.       Use fuser (system V), fstat (BSD), ofiles (public domain) or
  441.       pff (public domain).  These programs will tell you various things
  442.       about processes using particular files.
  443.  
  444.       A port of the 4.3 BSD fstat to Dynix, SunOS and Ultrix
  445.       can be found in archives of comp.sources.unix, volume 18.
  446.  
  447.       pff is part of the kstuff package, and works on quite a few systems.
  448.       Instructions for obtaining kstuff are provided in question 3.10.
  449.  
  450. 4.9)  How do I keep track of people who are fingering me?
  451.  
  452.       From: jik@pit-manager.MIT.EDU (Jonathan I. Kamens)
  453.       From: malenovi@plains.NoDak.edu (Nikola Malenovic)
  454.       Date: Mon, 23 Nov 1992 16:01:45 -0600
  455.  
  456.       Generally, you can't find out the userid of someone who is
  457.       fingering you from a remote machine.  You may be able to
  458.       find out which machine the remote request is coming from.
  459.       One possibility, if your system supports it and assuming
  460.       the finger daemon doesn't object, is to make your .plan file a
  461.       "named pipe" instead of a plain file.  (Use 'mknod' to do this.)
  462.  
  463.       You can then start up a program that will open your .plan file
  464.       for writing; the open will block until some other process (namely
  465.       fingerd) opens the .plan for reading.  Now you can whatever you
  466.       want through this pipe, which lets you show different .plan
  467.       information every time someone fingers you.
  468.  
  469.       Of course, this may not work at all if your system doesn't
  470.       support named pipes or if your local fingerd insists
  471.       on having plain .plan files.
  472.  
  473.       Your program can also take the opportunity to look at the output
  474.       of "netstat" and spot where an incoming finger connection is
  475.       coming from, but this won't get you the remote user.
  476.  
  477.       Getting the remote userid would require that the remote site be
  478.       running an identity service such as RFC 931.  There are now three
  479.       RFC 931 implementations for popular BSD machines, and several
  480.       applications (such as the wuarchive ftpd) supporting the server.
  481.       For more information join the rfc931-users mailing list,
  482.       rfc931-users-request@kramden.acf.nyu.edu.
  483.  
  484.       There are three caveats relating to this answer.  The first is
  485.       that many NFS systems won't recognize the named pipe correctly.
  486.       This means that trying to read the pipe on another machine will
  487.       either block until it times out, or see it as a zero-length file,
  488.       and never print it.
  489.  
  490.       The second problem is that on many systems, fingerd checks that
  491.       the .plan file contains data (and is readable) before trying to
  492.       read it.  This will cause remote fingers to miss your .plan file
  493.       entirely.
  494.  
  495.       The third problem is that a system that supports named pipes
  496.       usually has a fixed number of named pipes available on the
  497.       system at any given time - check the kernel config file and
  498.       FIFOCNT option.  If the number of pipes on the system exceeds the
  499.       FIFOCNT value, the system blocks new pipes until somebody frees
  500.       the resources.  The reason for this is that buffers are allocated
  501.       in a non-paged memory.
  502.  
  503. 4.10) Is it possible to reconnect a process to a terminal after it has
  504.       been disconnected, e.g. after starting a program in the background
  505.       and logging out?
  506.  
  507.       Most variants of Unix do not support "detaching" and "attaching"
  508.       processes, as operating systems such as VMS and Multics support.
  509.       However, there are two freely redistributable packages which can
  510.       be used to start processes in such a way that they can be later
  511.       reattached to a terminal.
  512.  
  513.       The first is "screen," which is described in the
  514.       comp.sources.unix archives as "Screen, multiple windows on a CRT"
  515.       (see the "screen-3.2" package in comp.sources.misc, volume 28.)
  516.       This package will run on at least BSD, System V r3.2 and SCO UNIX.
  517.  
  518.       The second is "pty," which is described in the comp.sources.unix
  519.       archives as a package to "Run a program under a pty session" (see
  520.       "pty" in volume 23).  pty is designed for use under BSD-like
  521.       system only.
  522.  
  523.       Neither of these packages is retroactive, i.e. you must have
  524.       started a process under screen or pty in order to be able to
  525.       detach and reattach it.
  526.  
  527. 4.11) Is it possible to "spy" on a terminal, displaying the output
  528.       that's appearing on it on another terminal?
  529.  
  530.       There are a few different ways you can do this, although none
  531.       of them is perfect:
  532.  
  533.       * kibitz allows two (or more) people to interact with a shell
  534.         (or any arbitary program).  Uses include:
  535.  
  536.     - watching or aiding another person's terminal session;
  537.     - recording a conversation while retaining the ability to
  538.       scroll backwards, save the conversation, or even edit it
  539.       while in progress;
  540.     - teaming up on games, document editing, or other cooperative
  541.       tasks where each person has strengths and weakness that
  542.       complement one another.
  543.  
  544.         kibitz comes as part of the expect distribution.  See question 3.9.
  545.  
  546.         kibitz requires permission from the person to be spyed upon.  To
  547.         spy without permission requires less pleasant approaches:
  548.  
  549.       * You can write a program that grovels through Kernel structures
  550.         and watches the output buffer for the terminal in question,
  551.         displaying characters as they are output.  This, obviously, is
  552.         not something that should be attempted by anyone who does not
  553.         have experience working with the Unix kernel.  Furthermore,
  554.         whatever method you come up with will probably be quite
  555.         non-portable.
  556.  
  557.       * If you want to do this to a particular hard-wired terminal all
  558.         the time (e.g. if you want operators to be able to check the
  559.         console terminal of a machine from other machines), you can
  560.         actually splice a monitor into the cable for the terminal.  For
  561.         example, plug the monitor output into another machine's serial
  562.         port, and run a program on that port that stores its input
  563.         somewhere and then transmits it out *another* port, this one
  564.         really going to the physical terminal.  If you do this, you have
  565.         to make sure that any output from the terminal is transmitted
  566.         back over the wire, although if you splice only into the
  567.         computer->terminal wires, this isn't much of a problem.  This is
  568.         not something that should be attempted by anyone who is not very
  569.         familiar with terminal wiring and such.
  570.  
  571. -- 
  572. Ted Timar - tmatimar@empress.com
  573. Empress Software, 3100 Steeles Ave E, Markham, Ont., Canada L3R 8T3
  574.