Article 156667 of comp.os.vms:
Someone, maybe <Tack-Kok.Koh@UBS.COM>, asked:
> Dear Wizards,
>     How do I generate a tone from a batch job running on a VAXstation with
> DECwindows Motif ?  Note that no DECterm should be required as I'm able to
> do it with at least 1 DECterm open.  What I hope to achieve if to produce
> this tome without starting any DECterm.

Indeed, you only need access to the X window DISPLAY - in a batch job 
this at least requires an explicit SET DISPLAY/CREATE command.

Then run a C program like

---------
#include <X11/Xlib.h>
main() {
	Display *dpy;

	dpy = XOpenDisplay("");		/* open DECW$DISPLAY */
	if(!dpy) return 4;

	XBell(dpy,50);			/* beep at 50% loudness */

	XSync(dpy,0);
	XCloseDisplay(dpy);
}
---------

I don't find a program in DECW$EXAMPLES or DECW$UTILS that "simply" beeps ...

Wolfgang J. Moeller, Tel. +49 551 2011516 or -510, moeller@gwdvms.dnet.gwdg.de
GWDG, D-37077 Goettingen, F.R.Germany   |       Disclaimer: No claim intended!
<moeller@decus.decus.de>  ----- <moeller@gwdg.de>  -----  <w.moeller@ieee.org>


