tianalita
5th April 2002, 16:10
There is a BAAN program to send a message to users. But i don't the name of this program and where can i get this program ?

thanks

patvdv
5th April 2002, 16:12
Have a look in this thread:

http://www.baanboard.com/baanboard/showthread.php?s=&threadid=440&highlight=bshcmd6.1

NPRao
5th April 2002, 21:11
In the latest BaaN Versions, with the worktop, you have that option in the Menu -> Administrator -> Send Message.

srinivas
5th April 2002, 21:24
Have this script in a file and execute. It will send message to all users.
This works if ur OS is UNIX.

**********Script********************

for i in `ps -e|grep bsh|awk`{printf("%d"\n",$1)}

do

bshcmd6.1 -M "MESSAGE FROM ADMIN" $1 -u5 -w5 ${i}

done

NPRao
5th April 2002, 21:35
for those who are not on the latest BaaN worktop versions, here is an awk shell script I like to use.

# Program Name - bmesg
# Shell Script for BaaN Message Broadcaster
# Only Super Users - BSP/ROOT are authorized for the broadcast message
# Author : N. P.Rao
example_mesg = "The system is going down for Shuttle Upgrations , Please Quit...!!!"
if test $LOGNAME = "bsp" -o $LOGNAME = "root"
then
if test $# -ne 2
then
echo "Command Usage: bmesg \"Message\""
exit
fi
for i in `ps -ef | grep bshell_lmsq | grep -v "grep bshell"|awk '{print $2}'`
# add another grep if based on user id
do
echo "Sending Message to ${i} \n"
$BSE/bin/bshcmd6.2 -w1 -u1 -M $1 $i
done
else
echo "Only-BSP/ROOT are authorized for the message broadcast\n"
fi

PeterH
8th April 2002, 09:01
For sending messages(in Baan IV, don't know for Baan V) you can install solution 13676std.dmp, through import patch. Insert a record through session ttadv4188m000 that looks like this:
mask: pollmess
session/object: ottstppollmess
automaticall add mask : yes
boot : yes
Press continue to convert to runtime.

If you want to send a message to all your user, create a file with your message, in $BSE/lib named systemmess. If you don't need the message anymore, just empty the file.

The message is read as users startup Baan or it pops out when they've already started Baan.

Han Brinkman
8th April 2002, 09:24
That works also in ERP.

Han

ericthomas
8th April 2002, 16:58
I have tested the 13676dmp and it looks fine on logon and updates are flashed at an interval of 5 minutes.

My Question is will this update disable session_timeout value?

Also Is there any way to set update time less than 5 minutes?

thanks in advance.

yeoea1
9th April 2002, 02:49
Below is a Unix script using the same bshcmd6.1 command but it allow you to enter message that you want to send to all users.



printf "Enter the message to be broadcast below :\n"
msg=`line`
for i in `licmon6.1 -w |awk '{print(substr($3,index($3,".")+1))}'`
do
bshcmd6.1 -M "$msg" -u 1 -w 1 ${i}
licmon6.1 -w |grep ${i} |awk '{print "Message Sent to "$3}'
done

croezen
16th July 2008, 13:18
Systemmess is showed when the user logs on, but users who are already logged on didn't get the message.
There must be something i am doing wrong, but i can't see it.
i have followed your instructions! hmm...