therese
26th June 2002, 09:15
Is it possible to send broadcast message for baan users using GUI? I have tried sending message to baan users using ascii thru "wall" command,how about in GUI?

NPRao
26th June 2002, 09:30
hi Therese,

You can use the Message Broadcast from the Worktop options or from the $BSE/bin/bshcmd[BaaN-version].

patvdv
26th June 2002, 09:44
Therese,

Have a look in this thread:

http://www.baanboard.com/baanboard/showthread.php?threadid=440&highlight=message

hsteenwi
16th August 2002, 16:00
Therese,

It is also possible to make a message appear every time a user logs in. You can do so by inserting the desired message in the ${BSE}/lib/systemmess file. This also works in the GUI.

I've got the feeling this is not exactly what you mean, but maybe it can be helpfull in some occasions.


Henk.

PV Ramone
17th August 2002, 14:30
I believe this is not only when logging in, but every time you change the file. All users that are logged in when you modify the content of the file get to see the new message within a few minutes.

bk.tvse
20th August 2002, 10:21
Hi,
Pls try this, it will send the message to a particular user. Write a script for sending to all users.

bshcmd6.1 -M "Message" -u 3 -w 3 <Bshell PID NO>

All the best

Millet
20th August 2002, 12:10
Solution 3089



This is posible by using ttstppollmess.
To make this utility active you should add in session "Maintain BMS Mask Data"
(ttadv4188m000) the folowing record:

MASK Session/Object AutomaticBoot Add Mask
pollmess ottstppollmess Yes Yes

After adding this record press Y on the choice field to convert to runtime.
This will create a file in $BSE/lib called bms_mask. From now on it is posible
to define a system message that comes up when the user starts the bshell. This
is the case for all kind of user interfaces. BW/BX and also BA.

The way to define a system message:

- Just edit a file called $BSE/lib/systemmess
- This file is displayed if available when a bshell is started.

Also a script will be added to this solution called alg6.1 This is a self
explaining shell script that gives the posibility to send messages to baan
users (BA/BW and BX) and also to kill BAAN users. To kill this script should be
executed as root.

jmdesai
21st August 2002, 07:32
I have developed a BaaN session which can be used to send messages to currently logged in users. You can select from a list of users to whom you want to send messages.

NPRao
21st August 2002, 21:12
Ok, well here is the shell script to do it -


# Shell Script for BaaN Message Broadcaster
# Applicable for the BaaN environment
# Only Super Users - BSP/ROOT are authorized for the broadcast message
# Author : N. Prashanth Rao

#bmesg = "Test Message ...!!!"

if test $LOGNAME = "bsp" -o $LOGNAME = "root"
then
if test $# -ne 1
then
echo "Command Usage: " $0 "\"Message\""
exit
fi
for i in `ps -ef | grep bshell_abcd | grep -v "grep bshell_abcd"|awk '{print $2}' `
# add another grep before awk if based on user id
do
echo "Sending Message to ${i} \n"
$BSE/bin/bshcmd6.2 -w1 -u1 -M $bmesg $i
done
else
echo "Only-BSP/ROOT are authorized for the message broadcast\n"
fi


This can be extended to handle the different bshell environments, user selections etc...

I hope it helps you all... :p

Abuibra
14th May 2003, 07:48
Hi Rao,

I am just curious of what you do with the script in order for it to work. Do you include in a session or just recopy it into the systmess folder. My systmess file doesn't work too?

Thanks

Abuibra
14th May 2003, 08:18
Hi Jmdesai,

Do you have the session?

Thanks

NPRao
14th May 2003, 08:35
Abuibra,

Your profile shows that your on a Windows-NT installation. My script was made to run for Unix systems.

Refer to the thread - message in windows (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6378&highlight=bshcmd)

I use it from Unix prompt.

To get the general message broadcast for all the users, refer to the thread - Message Broadcast (http://www.baanboard.com/baanboard/showthread.php?s=&postid=2015#post2015)

vishbaan
6th October 2004, 10:10
This is posible by using ttstppollmess.
To make this utility active you should add in session "Maintain BMS Mask Data"
(ttadv4188m000) the folowing record:

MASK Session/Object AutomaticBoot Add Mask
pollmess ottstppollmess Yes Yes


hi

I tried as above.

I added ottstpmess inplace of ottstppollmess.
I added some text in systemess file in $BSE\lib\

But when users log-in, a blank small window only appears.

any idea why

thanks

VISH