Can I log winpopup messages ?

Kristyan Osborne kris at longhill.brighton-hove.sch.uk
Wed Jan 16 04:15:07 GMT 2002


This might give you a hand. This is what I use. It sends the output to
virtual console 8. You can modify how you want it
 
message command = echo At '%T' user '%U' from '%f' sent a message to
'%t' > /dev/tty8 ; cat %s > /dev/tty8 ; rm %s ; echo > /dev/tty8
 
Cheers

-----Original Message-----
From: Sir hamacker [mailto:hamacker at bol.com.br]
Sent: 16 January 2002 11:11
To: samba at lists.samba.org
Subject: Can I log winpopup messages ?


Hi ALL,
Reading man pages I discover 'message command' in smb.conf...
by the way, I put in my smb.conf :
message command = /usr/bin/samba2log "%f" "%t" "%s" &

where samba2log is a simple script :
#/bin/sh 
now=`date +%d-%m-%Y+%H:%M`
cat_msg=`cat $3`;
echo "$1|$now|$2|$cat_msg" >> /var/log/samba/popupmessages.txt;
rm -fR $4
 
But, this is not run when the server receive a message.
Whats wrong ?


-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list