From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,ab120e0e8ee38d3d X-Google-Attributes: gidf7344,public X-Google-Thread: f73f6,ab120e0e8ee38d3d X-Google-Attributes: gidf73f6,public X-Google-Thread: f86d6,ab120e0e8ee38d3d X-Google-Attributes: gidf86d6,public X-Google-Thread: fc7fa,ab120e0e8ee38d3d X-Google-Attributes: gidfc7fa,public From: rkoehler@csc.com (Robert Koehler) Subject: Re: How does one read from and write to a mailbox in DCL? Date: 1997/09/05 Message-ID: <5up05i$f0v@explorer.csc.com>#1/1 X-Deja-AN: 269985294 References: <340F11CE.702A2B52@bankofny.com> Followup-To: comp.sys.vms,comp.os.vms,vmsnet.sysmgt,vmsnet.internals Organization: Computer Sciences Corporation Reply-To: rkoehler@csc.comsog Newsgroups: comp.sys.vms,comp.os.vms,vmsnet.sysmgt,vmsnet.internals Manny DeAssis (mdeassis@bankofny.com) wrote: : Hello everyone, : My co-worker has a program that writes info to a mailbox at select : intervals. It is at shutdown (or termination) of this program that he : wants the contents of the mailbox to be dumped to a file. Later when : the program is restarted the contents of the file should be written to : the mailbox created/used by the program. : Does anyone know how to write a DCL command procedure that can dump : the contents of a mailbox to a file and later write the contents back to : a mailbox? $copy mbannn: file.name and $copy file.name mbannn: In many cases you'll know a logical name for the mailbox instead of the unit number: $copy mb-log-name: file.name and $copy file.name mb-log-name: OBTW, $copy mbannn: nl: is a great way to relieve RWMBX. ------------------------------------------------------------------------------ Bob Koehler | Computer Sciences Corporation Hubble Space Telescope Payload | System Sciences Division Flight Software Team |