home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / vms / 17593 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  3.3 KB

  1. Path: sparky!uunet!ogicse!usenet.coe.montana.edu!saimiri.primate.wisc.edu!mimbres.cs.unm.edu!constellation!geohub.gcn.uoknor.edu!dwight
  2. From: dwight@geohub.gcn.uoknor.edu (Dwight D. Moore)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: DCL Help: Starting a remote DCL file & knowing when it's done
  5. Message-ID: <1992Nov6.154233.24247@constellation.ecn.uoknor.edu>
  6. Date: 6 Nov 92 15:42:33 GMT
  7. Article-I.D.: constell.1992Nov6.154233.24247
  8. References: <a725911.12@bugs.mc.ti.com> <1992Nov5.212240.9749@rtpnc.epa.gov>
  9. Sender: usenet@constellation.ecn.uoknor.edu (Usenet Administrator)
  10. Reply-To: dwight@geohub.gcn.uoknor.edu
  11. Organization: Geosciences Computing Network, Univ. of Oklahoma
  12. Lines: 75
  13. Originator: usenet@kittyhawk.ecn.uoknor.edu
  14.  
  15. In article <1992Nov5.212240.9749@rtpnc.epa.gov>, rbn@ralph.rtpnc.epa.gov (Bob Boyd) writes:
  16. |>Newsgroups: comp.os.vms
  17. |>Path:
  18. |
  19. constellation!mimbres.cs.unm.edu!ncar!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!concert!
  20. !epa-rtp!ralph.rtpnc.epa.gov!rbn
  21. |>From: rbn@ralph.rtpnc.epa.gov (Bob Boyd)
  22. |>Subject: Re: DCL Help: Starting a remote DCL file & knowing when it's done
  23. |>Message-ID: <1992Nov5.212240.9749@rtpnc.epa.gov>
  24. |>Sender: usenet@rtpnc.epa.gov
  25. |>Nntp-Posting-Host: ralph.rtpnc.epa.gov
  26. |>Reply-To: rbn@ralph.rtpnc.epa.gov
  27. |>Organization: Unisys/EPA
  28. |>References:  <a725911.12@bugs.mc.ti.com>
  29. |>Date: Thu, 5 Nov 1992 21:22:40 GMT
  30. |>Lines: 41
  31. |>
  32. |>It's relatively easy to set up DCL code that uses transparent task-to-task 
  33. |>DECnet to do this.  The basics are that there are two command procedures:
  34. |>
  35. |>1.  The local procedure:
  36. |>
  37. |>      Opens for read/write a file specification that causes the remote task  
  38. |>      command procedure to be invoked.
  39. |>
  40. |>      This looks something like:
  41. |>
  42. |>       OPEN_LINK:
  43. |>            open/read/write remote_link 
  44. |>'remote_node'::"0=''remote_task'"/error=open_failed
  45. |>      
  46. |>       Then issue a read against the link.  
  47. |>
  48. |>        WAIT_FOR_REMOTE:
  49. |>             read/end=remote_done/error=remote_died remote_link remote_record
  50. |>
  51. |>2.     The remote procedure:
  52. |>            Must be defined to NCP by the same name as used in procedure 1, or be a
  53. |>command
  54. |>            procedure by the same name.  It could also be a logical name that points to
  55. |>the 
  56. |>            command procedure.
  57. |>
  58. |>           opens SYS$NET for read/write to complete the network link:
  59. |>
  60. |>            open/read/write net_link SYS$NET/error=net_died
  61. |>  
  62. |>            Then it invokes whatever other commands/images that it is supposed to do.
  63. |>
  64. |>             When it is done, it can simply issue a 
  65. |>
  66. |>              close/nolog net_link
  67. |>
  68. |>If you want examples of stuff like that there are several around.  I have some if you
  69. |>want.
  70. |>Let me know by e-mail if you do.
  71. |>
  72. |>--
  73. |>Bob Boyd                 
  74. |>rbn@ralph.rtpnc.epa.gov 
  75. |>Unisys/EPA               
  76. |>
  77. |>
  78.  
  79. If you have system priviledges, setting up a DECnet object is another way
  80. of making a "known" DECnet task so that the DCL file can reside in the SYS$SYSTEM
  81. directory.  This is good for typical remote batch jobs. 
  82. ----------------------------------------------------------------------------
  83. Dwight D. Moore
  84. Geosciences Computing Network
  85. University of Oklahoma
  86.  
  87. dwight@geohub.gcn.uoknor.edu (129.15.40.10)
  88. These opinions do not necessarily represent the opinions of OU or the GCN.
  89. ----------------------------------------------------------------------------
  90.