home *** CD-ROM | disk | FTP | other *** search
/ Multimedia & CD-ROM 7 / mmcd07-nov1995-cd.iso / boutique / mmedia / bye.cmd < prev    next >
OS/2 REXX Batch file  |  1995-04-21  |  466b  |  24 lines

  1. # the following script should be named BYE.CMD it attempts to exit
  2. # the system gracefully, by stopping Tia first.
  3. # note that the 5 ctrl-c's must be sent SLOWLY for tia to understand them!
  4. # do NOT remove the delays..
  5. output \3
  6. sleep 1
  7. output \3
  8. sleep 1
  9. output \3
  10. sleep 1
  11. output \3
  12. sleep 1
  13. output \3
  14. sleep 1
  15. input 30 "$"
  16. outputecho 30 "exit"\r
  17. input 30 "Main:"
  18. outputecho 30 "bye"\r
  19. sleep 5
  20. # now hangup anyway
  21. set DTR off
  22. sleep 1
  23. set DTR on
  24.