home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-User.iso / NextLibrary / PrivateFrameworks / Uucp.framework / Versions / A / Resources / contrib / uutry < prev    next >
Text File  |  1995-06-04  |  963b  |  44 lines

  1. #!/bin/sh
  2. #
  3. # This script was hacked together by Marc Evans (marc@Synergytics.Com)
  4. # I claim no copyright to it and don't really care what people do
  5. # with it, hence, it is public domain. I take no responsibility for
  6. # for happens if you use this script, providing no warentee. This
  7. # section of the comments may be removed if you so desire.
  8. #
  9. # Usage:
  10. #       uutry [-x#] systemname
  11. # where '-x#' has the value [0-9], higher values providing more detail
  12.  
  13. #
  14. # The following variables should be gropped from the configuration
  15. # files rather then being hard coded here.
  16. #
  17. Spool=/usr/spool/uucp
  18. Lib=/usr/local/lib/uucp
  19. Status=$Spool/.Status
  20. Debug=$Spool/Debug
  21. Uucico=$Lib/uucico
  22. #
  23. # Default option values
  24. #
  25. x="-x5"
  26. s=""
  27.  
  28. for i in $* ; do
  29.     case $i in
  30.         -x*) x="$i" ;;
  31.         *) s="$i" ;;
  32.     esac
  33. done
  34.  
  35. if [ x$s != x ]; then
  36.     rm -f $Status/$s
  37.     $Uucico -r1 $x -s$s &
  38.     >$Debug
  39.     tail -f $Debug
  40. else
  41.     echo "Usage: uutry systemname"
  42.     exit 1
  43. fi
  44.