Operating System - OpenVMS
1752288 Members
3314 Online
108786 Solutions
New Discussion юеВ

Re: Broadcast message from batch job to my terminal

 
SOLVED
Go to solution
Alberto V├бsquez
Occasional Advisor

Broadcast message from batch job to my terminal

Hi,

I have a batch job that do some things. During its execution I would like to send some
alerts to my terminal (using same username). Both, terminal and batch job
use the same username and has TMPMBX,NETMBX privileges.

As I understand the REPLY/USERNAME command needs OPER privileges. But the
intention is to send messages only from my batch job to my terminal (no other user will
receive any messages). Any way to do it?

OpenVMS V7.3

Thanks for your help
8 REPLIES 8
Hein van den Heuvel
Honored Contributor

Re: Broadcast message from batch job to my terminal


Just a thought... how about exploiting VMSmail for thsi purpose.
As added bonus you can readily send some extra supporting data and y9ou get a permanent record.
As a gotcha you'll have to clean out those Emails over time. Be sure for them to be readily recognizable, for example with a special piece of string in the subject line.

$mail /subj="batch_status"/pers="Batch job X now entering stage Y" nl:

Hein.

Alberto V├бsquez
Occasional Advisor

Re: Broadcast message from batch job to my terminal

Hein thanks for your response.

Mail can be an option but the intention is to receive shorts alerts like "Phase 1 begin", "Phase 1 at 25%", "Phase 1 at 50%", etc. The terminal session will act like an alert screen.
Hein van den Heuvel
Honored Contributor
Solution

Re: Broadcast message from batch job to my terminal

Understood.
Did you notice the "/PERSONAL_NAME" in the VAXmail command?

That string will appear on the screen(s) and can serve as a short status message:

The result from my example would be:

New mail on node RX1 from RX1::HEIN "Batch job X now entering stage Y"

Hein.
Alberto V├бsquez
Occasional Advisor

Re: Broadcast message from batch job to my terminal

Thanks Hein.

That's correct. Mail command with /PERSONAL will cover all my need.
Alberto V├бsquez
Occasional Advisor

Re: Broadcast message from batch job to my terminal

Thanks again!!
Joseph Huber_1
Honored Contributor

Re: Broadcast message from batch job to my terminal

I see, You don't want to have Your mailbox filled up with messages.

The user-available possibility is the
SYS$BRKTHRU system service.

See a ready to use example in my utility page:

http://wwwvms.mppmu.mpg.de/~huber/util/main/sendme.html

If You have no Fortran compiler, use the ready to use executable in the binary archives linked from
http://wwwvms.mppmu.mpg.de/~huber/util/main/

http://www.mpp.mpg.de/~huber
Jess Goodman
Esteemed Contributor

Re: Broadcast message from batch job to my terminal

Just write a short program that calls the SYS$BRKTHRU system service, documented here:
http://h71000.www7.hp.com/doc/732final/4527/4527pro_001.html#jun_72

Pass the program a text string and user name on the command line and use the $BRKTHRU service SNDTYP argument option BRK$C_USERNAME, and the FLAGS argument option BRK$M_CLUSTER.

Have your system manager install your program with OPER privilege and if he/she wishes, protect the image from unauthorized access using an ACL or other security method.

I have one, but it's personal.
Joseph Huber_1
Honored Contributor

Re: Broadcast message from batch job to my terminal

Finally, there is the SEND utility at Hunters server at process.com:
http://vms.process.com/scripts/fileserv/fileserv.com?SEND

it has some more options.
http://www.mpp.mpg.de/~huber