* VMS Question: Writing to a Null Device?
@ 1993-11-24 19:14 System Manager
1993-11-25 17:20 ` Carl P. Zwanzig
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: System Manager @ 1993-11-24 19:14 UTC (permalink / raw)
Hello,
I am a UNIXite and find using DCL a brain bender :-). I am trying
to find a way to be able to write to a null device like you can in UNIX
by redirecting to /dev/null. I haven't found anything similar in VMS and
I have a need to write data from a device and send it to La-La-Land
or the Ground Plug on the AC Cord, I have yet to find the GROUNDPLUG1:
device in VMS yet.
Could some kind soul point me in the right direction??
-Jeff
jeff@wsm.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMS Question: Writing to a Null Device?
1993-11-24 19:14 VMS Question: Writing to a Null Device? System Manager
@ 1993-11-25 17:20 ` Carl P. Zwanzig
1993-11-26 4:15 ` NCOM - Craig McGILL
1993-12-01 6:54 ` Peter J MASON
2 siblings, 0 replies; 5+ messages in thread
From: Carl P. Zwanzig @ 1993-11-25 17:20 UTC (permalink / raw)
In article <1993Nov24.191402.401@wsm.com>, System Manager <root@wsm.com> wrote:
>
>Hello,
>
> I am a UNIXite and find using DCL a brain bender :-). I am trying
Gee, I feel the same way about unix.
>to find a way to be able to write to a null device like you can in UNIX
>by redirecting to /dev/null. I haven't found anything similar in VMS and
>I have a need to write data from a device and send it to La-La-Land
>or the Ground Plug on the AC Cord, I have yet to find the GROUNDPLUG1:
>device in VMS yet.
>
> Could some kind soul point me in the right direction??
The VMS version of /dev/null is NLA0:. On writes, it immediately
completes the operation successfully, and on reads returns success
with length of zero.
The equivalent of /dev/groundplug is GPA0:, implimented as follows:
define/system/exec GPA0 NLA0
or you can use:
define/system/exec GROUNDPLUG1 NLA0
:-)
happy bit-bucketing
z!
Carl Zwanzig
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMS Question: Writing to a Null Device?
1993-11-24 19:14 VMS Question: Writing to a Null Device? System Manager
1993-11-25 17:20 ` Carl P. Zwanzig
@ 1993-11-26 4:15 ` NCOM - Craig McGILL
1993-12-01 6:54 ` Peter J MASON
2 siblings, 0 replies; 5+ messages in thread
From: NCOM - Craig McGILL @ 1993-11-26 4:15 UTC (permalink / raw)
In <1993Nov24.191402.401@wsm.com> root@wsm.com writes:
>
> Hello,
>
> I am a UNIXite and find using DCL a brain bender :-). I am trying
> to find a way to be able to write to a null device like you can in UNIX
> by redirecting to /dev/null. I haven't found anything similar in VMS and
> I have a need to write data from a device and send it to La-La-Land
> or the Ground Plug on the AC Cord, I have yet to find the GROUNDPLUG1:
> device in VMS yet.
>
> Could some kind soul point me in the right direction??
>
I'm very surprised that you haven't been FLOODED with responses to
your question. I have seen none to date, so I will reply.
The device you are after is NLA0:, which can be abbreviated to NL:
(this abbreviation is the same for any device, the controller letter
"A" and unit number "0" are assumed if omitted). This is a very fast
device !!!! :-)
If you attempt to read from NL: it will immediately return an end-of-file
(^Z, ascii 26), and if you write to it, it will soak up data as fast as
you can write to it !!
I often suggest to users that if they have any complaints, they should
direct them to NL: !!!
I suppose thousands of others will reply to your question, probably
without noticing that I have to. Groan !!
Craig McGill.
Darwin.
Australia.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMS Question: Writing to a Null Device?
1993-11-24 19:14 VMS Question: Writing to a Null Device? System Manager
1993-11-25 17:20 ` Carl P. Zwanzig
1993-11-26 4:15 ` NCOM - Craig McGILL
@ 1993-12-01 6:54 ` Peter J MASON
1993-12-02 3:37 ` NORRIS8016
2 siblings, 1 reply; 5+ messages in thread
From: Peter J MASON @ 1993-12-01 6:54 UTC (permalink / raw)
root@wsm.com (System Manager) writes:
> I am a UNIXite and find using DCL a brain bender :-). I am trying
>to find a way to be able to write to a null device like you can in UNIX
>...
This is only from memory, but I think there is an NL: device which
should do the trick.
--
Internet: petem@grieg.sydney.syscen.com
petem@paganini.sydney.syscen.com
AARnet: petem@grieg.sdi.oz.au
Peter J. MASON
Sterling Software (Australia) Pty. Ltd.,
28 Rodborough Rd., French's Forest. NSW 2086 Australia.
VOICE: +61-2-975 4777 FAX: +61-2-975 2921
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMS Question: Writing to a Null Device?
1993-12-01 6:54 ` Peter J MASON
@ 1993-12-02 3:37 ` NORRIS8016
0 siblings, 0 replies; 5+ messages in thread
From: NORRIS8016 @ 1993-12-02 3:37 UTC (permalink / raw)
A quick way to delete all files in multiple directories is:
BACKUP/DEL <directory list> NLA0:X.SAV/SAV
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1993-12-02 3:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-24 19:14 VMS Question: Writing to a Null Device? System Manager
1993-11-25 17:20 ` Carl P. Zwanzig
1993-11-26 4:15 ` NCOM - Craig McGILL
1993-12-01 6:54 ` Peter J MASON
1993-12-02 3:37 ` NORRIS8016
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox