From 084684468dd99d0879843dd0c38db25e28c73937 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 15 Apr 2003 07:47:02 +0000 Subject: Convert another group of options in Misc section (This used to be commit a690ff1f8a068e66ffcbfdaf0be215f887a02b9c) --- docs/docbook/smbdotconf/misc/messagecommand.xml | 118 +++++++++++++----------- 1 file changed, 63 insertions(+), 55 deletions(-) (limited to 'docs/docbook/smbdotconf/misc/messagecommand.xml') diff --git a/docs/docbook/smbdotconf/misc/messagecommand.xml b/docs/docbook/smbdotconf/misc/messagecommand.xml index 199fab5610..6df2a02bb7 100644 --- a/docs/docbook/smbdotconf/misc/messagecommand.xml +++ b/docs/docbook/smbdotconf/misc/messagecommand.xml @@ -1,65 +1,73 @@ - - message command (G) - This specifies what command to run when the - server receives a WinPopup style message. - - This would normally be a command that would - deliver the message somehow. How this is to be done is - up to your imagination. - - An example is: - - message command = csh -c 'xedit %s;rm %s' & - - - This delivers the message using xedit, then - removes it afterwards. NOTE THAT IT IS VERY IMPORTANT - THAT THIS COMMAND RETURN IMMEDIATELY. That's why I - have the '&' on the end. If it doesn't return immediately then - your PCs may freeze when sending messages (they should recover - after 30 seconds, hopefully). - - All messages are delivered as the global guest user. - The command takes the standard substitutions, although - %u won't work (%U may be better - in this case). - - Apart from the standard substitutions, some additional - ones apply. In particular: - - - %s = the filename containing - the message. + + + This specifies what command to run when the + server receives a WinPopup style message. + + This would normally be a command that would + deliver the message somehow. How this is to be done is + up to your imagination. + + An example is: + + message command = csh -c 'xedit %s;rm %s' & + + + This delivers the message using xedit, then + removes it afterwards. NOTE THAT IT IS VERY IMPORTANT + THAT THIS COMMAND RETURN IMMEDIATELY. That's why I + have the '&' on the end. If it doesn't return immediately then + your PCs may freeze when sending messages (they should recover + after 30 seconds, hopefully). + + All messages are delivered as the global guest user. + The command takes the standard substitutions, although + %u won't work (%U may be better + in this case). + + Apart from the standard substitutions, some additional + ones apply. In particular: + + + + %s = the filename containing + the message. + - %t = the destination that - the message was sent to (probably the server name). + + %t = the destination that + the message was sent to (probably the server name). + - %f = who the message - is from. - + + %f = who the message + is from. + + - You could make this command send mail, or whatever else - takes your fancy. Please let us know of any really interesting - ideas you have. + You could make this command send mail, or whatever else + takes your fancy. Please let us know of any really interesting + ideas you have. + Here's a way of sending the messages as mail to root: - Here's a way of sending the messages as mail to root: + message command = /bin/mail -s 'message from %f on + %m' root < %s; rm %s - message command = /bin/mail -s 'message from %f on - %m' root < %s; rm %s + If you don't have a message command then the message + won't be delivered and Samba will tell the sender there was + an error. Unfortunately WfWg totally ignores the error code + and carries on regardless, saying that the message was delivered. + - If you don't have a message command then the message - won't be delivered and Samba will tell the sender there was - an error. Unfortunately WfWg totally ignores the error code - and carries on regardless, saying that the message was delivered. - + If you want to silently delete it then try: - If you want to silently delete it then try: + message command = rm %s - message command = rm %s + Default: no message command - Default: no message command - Example: message command = csh -c 'xedit %s; - rm %s' & - - + Example: message command = csh -c 'xedit %s; rm %s' & + + -- cgit