.xta
上传用户:duobangkj
上传日期:2007-01-07
资源大小:70k
文件大小:2k
源码类别:

Telnet客户端

开发平台:

Unix_Linux

  1. # .xta - xt script to visit CIS automagically; mail,sco,uni
  2. # assumes goto-MAIL-if-any-mail, command mode in MAIL and Fora,
  3. # non-stop read, and Prompt Char set to '^H' in all Fora.
  4. tty "on"
  5. #set dir "/u/jpr/comm"
  6. #debug "on"
  7. call ".xtcis"
  8. waitfor  " ID:"
  9. if seen "? ILGLNK"
  10. then
  11. beep
  12. echo ""
  13. quit
  14. fi
  15. assign SERVICE eq "mail"
  16. call ".pass"
  17. set cfile "email"
  18. #debug "on"
  19. if waitfor "CompuServe Mail  ^M" 8
  20. tty "on"
  21. then if ! waitfor "No messages pending" 5
  22. then capture "on"
  23. file echo `date`
  24. transmit "rec all^M"
  25. while ! waitfor "Mail!"
  26. do; done
  27. transmit "del all^M"
  28. capture "off"
  29. fi
  30. else
  31. beep
  32. endif
  33. set cfile "uni"
  34. transmit "g unixforum^M"
  35. waitfor "moment please..."
  36. capture "on"
  37. if waitfor "forum !^h" 75
  38. then
  39. assign Upload eq `ls uniR 2>/dev/null`
  40. if Upload eq "uniR"
  41. then capture "off"
  42. type "uniR"
  43. transmit "^M"
  44. while ! waitfor "^J% choice required"
  45. do; done
  46. shell "mv uniR /pub/rescue/uniR$$"
  47. capture "on"
  48. fi
  49. transmit "rea new^M^M"
  50. while ! waitfor "^J% choice required"
  51. do; done
  52. capture "off"
  53. else
  54. beep
  55. fi
  56. set cfile "sco"
  57. transmit "g scoforum^M"
  58. waitfor "moment please..."
  59. capture "on"
  60. if waitfor "forum !^H" 30
  61. then
  62. transmit "quote scoc^M^M"
  63. assign Upload eq `ls scoR 2>/dev/null`
  64. if Upload eq "scoR"
  65. then capture "off"
  66. type "scoR"
  67. transmit "^M"
  68. while ! waitfor "^J% choice required"
  69. do; done
  70. shell "mv scoR /pub/rescue/scoR$$"
  71. capture "on"
  72. fi
  73. transmit "rea new^M^M"
  74. while ! waitfor "^J% choice required"
  75. do; done
  76. capture "off"
  77. else
  78. beep
  79. fi
  80. transmit "off^M"
  81. pause 2
  82. quit