home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / apps / telecomm / o_026 / uupoll.sh < prev   
Text File  |  1994-11-11  |  1KB  |  78 lines

  1. # uucp poll with O and Hermes 1.10
  2. # Bourne-Style shell script
  3. # wr 30.7.93
  4.  
  5. A=$*
  6.  
  7. PATH=d:/bin,d:/usr/bin,e:/o,$PATH
  8. O_INF=e:/o/o.inf
  9. export PATH O_INF
  10.  
  11. # clean up temp space
  12. rm -f m:/tmp/*.txt
  13.  
  14. # remove Hermes history file
  15. rm -f h:/news/history
  16.  
  17. # uuwork creates a file in the root of the current drive, so
  18. # make sure we are not on U:
  19. cd c:/
  20.  
  21. # run with parameter "poll" to supress export
  22. if [ "$A" != "poll" ]
  23. then
  24.   # inform user about free disk space to help him decide whether to
  25.   # abort oexpire (delete this line if you are not using the
  26.   # Okami shell)
  27.   echo Free space on H: `df -f h` bytes
  28.  
  29.   # O cleanup
  30.   echo cut logs
  31.   cutlog.ttp -W -s 5000 -l 500 -a 5 $ETC/log/*
  32.  
  33.   # O expire
  34.   # -Yu = Usenet only
  35.   # -W = wait for ESC-termination
  36.   # -R = reorg if 50% or more unused
  37.   echo oexpire
  38.   oexpire -Yu -W -R 50%
  39.  
  40.   # O export
  41.   echo oexport
  42.   oexport
  43.  
  44.   # uucp export
  45.   rsmtp
  46.   rmail
  47.   rnews
  48.   batch tornado
  49.   batchmai tornado
  50. fi
  51.  
  52. # now do the uucp poll (use TEMP from config.sys)
  53. SAVETEMP=$TEMP
  54. unset TEMP
  55. uuwork -n tornado
  56.  
  57. # switch cursor back on (delete this line if you are not
  58. # using the Okami shell)
  59. cursor +v
  60.  
  61. # uucp import
  62. rmail
  63. rnews
  64.  
  65. # restore TEMP
  66. TEMP=$SAVETEMP
  67. export TEMP
  68. unset SAVETEMP
  69.  
  70. # O import
  71. # -I = delete files immediately after import (saves disk space)
  72. echo oimport
  73. oimport -I
  74.  
  75. # check mail
  76. omchk -l wr root
  77. echo ^007UU-Poll beendet.
  78.