- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Obtaining broadcast messages for a user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 06:52 AM
09-22-2005 06:52 AM
We have .NET applications that run on PCs and submit batch jobs, and I would like to forward the user's broadcast messages (job terminations, etc) back to them.
I know it is possible to route broadcast messages to a mailbox, but I don't know how to create a mailbox on behalf of a user and instruct VMS to write that user's broadcast messages into it.
Can someone point me in the right direction on how to accomplish this, or is this beyond the scope of something I can do with system calls?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 07:34 AM
09-22-2005 07:34 AM
SolutionSYS$CREMBX and assign mailbox channel
SYS$ASSIGN mailbox channel to terminal channel
QIOW (IO$_SETMODE OR IO$M_WRTATTN) to mailbox channel
QIOW SETMODE TT2$M_BRDCSTMBX
I can provide cobol, basic or C examples of that.
The critical part in this is to have a terminal. For a server job that would have to be a 'psuedo' terminal.
The SMG library routines can make the QIO work easier, but still need a terminal.
See the RTL REF MAN under SMG$ENABLE_BROACAST_TRAPPING,
SMG$DISABLE_BROACAST_TRAPPING,
SMG$GET_BROADCAST_MESSAGE.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 08:17 AM
09-22-2005 08:17 AM
Re: Obtaining broadcast messages for a user
That pretty much answers my question. I was hoping I could avoid creating a separate process for each user, but it appears that isn't the case.
I took a quick look at creating the pseudoterminal, and it looks like that gets me a device to talk to, but I still need to log into that device with username and password to associate it with the user.
Do you know if there is a way I could set up the user process and terminal without having to handle the user's password (like SUBMIT/USER= does for a batch job?)
Thanks for your help.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 09:23 AM
09-22-2005 09:23 AM
Re: Obtaining broadcast messages for a user
I hate to keep replying to my own post, but I just wanted your take on the following sequence:
1) use PTD$CREATE to create a pseudoterminal
2) use SYS$PERSONA_CREATE and SYS$PERSONA_ASSUME to assume the identity of the user
3) use SYS$CREPRC and flag PRC$M_NOPASSWORD to create a process and associate it with the pseudoterminal
4) run an image that will map the broadcast messages to a mailbox using the SMG$ routines and forward the output to my server
Thanks for your help.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 09:57 AM
09-22-2005 09:57 AM
Re: Obtaining broadcast messages for a user
http://h18000.www1.hp.com/support/asktima/appl_tools/0096A6E1-E8A861C0-1C0097.html
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 10:01 AM
09-22-2005 10:01 AM
Re: Obtaining broadcast messages for a user
http://h18000.www1.hp.com/support/asktima/operating_systems/009694DA-62EA44E0-1C0097.html
http://h18000.www1.hp.com/support/asktima/operating_systems/009396A8-91874560-1C03C5.html
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2005 11:20 AM
09-22-2005 11:20 AM
Re: Obtaining broadcast messages for a user
So I have re-posted this question in an internal HP notesfiles. I'll relay any pertinent answers here (or at least those arriving before 10/14 ).
note, In studying this matter you also want to read up on SYS$BRKTHRU, being the sending side of the messages.
Later,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2005 07:34 AM
10-04-2005 07:34 AM
Re: Obtaining broadcast messages for a user
The pseudoterminal idea worked just fine. I used the pseudoterminal output directly rather than trying to route broadcast messages into a mailbox.
I was only able to obtain broadcast messages when I created an interactive process and executed LOGINOUT as the image.
Thank you both for your help.
Tom