evertsen
25th June 2003, 19:08
I am attempting to implement a restriction on licences for certain users. I have successfully accomplished this through a UNIX script that checks licences used etc. What I would like is to exactly duplicate the "Maximum number of users reached" BW message window which normally appears when out of licences. Any ideas?

Brendan Shine
26th June 2003, 00:15
One possibility would be to setup in ttadv4188m000 "Maintain BMS Mask Data" and entry

| Mask Session/Object Automatical Boot |
| add Mask |
| pollmess ottstppollmess Yes No |

Then in your script (I'm assuming you've substituted your own for the standard bshell via ipc_info):

If "specific_users_out_of_licenses"
then
${BSE}/bin/bshell6.1 $* ottstppollmess
else
${BSE}/bin/bshell6.1 $*
fi

Which would display message in file $BSE/lib/systemmess:
"Maximum Number of Licenses Reached"

evertsen
26th June 2003, 07:40
Not exactly what I was looking for (I was hoping to duplicate the message window exactly) but it will do for now. Thanks for the help.

chjagge
26th June 2003, 17:48
I've done the same without using the dll mentioned above. However, its a little more than what you've asked for. Look at the thread for monitoring users (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=8604) about 6-7 links below and I've posted the various parts of the script to perform user licence restrictions and notifying them. Hope this can be of use to you.

evertsen
26th June 2003, 20:09
Yes, I'd already looked at that thread and although your code is intriguing it certainly is more than I need right now. I'll see if I can use part of it.