home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / REFLECT.ZIP / DEMO3.DCL < prev    next >
Encoding:
Text File  |  1989-02-14  |  1.3 KB  |  48 lines

  1. $!  DEMO3.DCL        HOST BACKUP CONTROL OF REFLECTION
  2. $!
  3. $!  This file, once transferred to the VAX, must be renamed changing
  4. $!    the .DCL extension to a .COM extension.
  5. $!
  6. $!    Command file to start a Reflection PC backup.
  7. $!
  8. $!    Parameters:
  9. $!
  10. $!       p1 - the terminal port of the PC to backup (e.g. TTA2:)
  11. $!
  12. $!    To execute from batch:
  13. $!
  14. $!       submit/parameters=(<terminal>) backup
  15. $!
  16. $!    n.b. For this command file to function correctly,
  17. $!         - the user must be logged off the system
  18. $!         - the user must be running Reflection on his/her PC
  19. $!         - the command file must be executed from an account with
  20. $!           SYSPRV privlege or the protection of the terminal port
  21. $!           must be changed.
  22. $!         - a foreign command 'vaxlink' must be defined to run vaxlink
  23. $!
  24. $! setup  reflection command
  25. $!
  26. $ esc[0,8] = %X1B
  27. $ esc_seq = esc  + "&oC" + "backup \*.* /s"
  28. $!
  29. $! open the terminal port and send command
  30. $!
  31. $ open/write $tty 'p1
  32. $ write $tty esc_seq
  33. $!
  34. $! read the host startup sequence and toss it
  35. $!
  36. $ read/prompt="" $tty host_startup_seq
  37. $!
  38. $! redefine sys$input (used by vaxlink for file transfer) to the tty port
  39. $!
  40. $ define/user sys$input $tty
  41. $!
  42. $! run the file transfer program (change to 'vaxlink e' for 8-bit protocol)
  43. $!
  44. $ vaxlink
  45. $!
  46. $ close $tty
  47. $ exit
  48.