System wide message:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg, 

If I am reading this right, when, let's say wall transmits a message,
samba sees it and with the message command ... The console message
generated by wall is transmitted across the samba network?

Steve Dawes
Phone: (403) 268-5527
Email: SDawes at calgary.ca
 
 

NOTICE -
This communication is intended ONLY for the use of the person or entity named above and may contain information that is confidential or legally privileged. If you are not the intended recipient named above or a person responsible for delivering messages or communications to the intended recipient, YOU ARE HEREBY NOTIFIED that any use, distribution, or copying of this communication or any of the information contained in it is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and then destroy or delete this communication, or return it to us by mail if requested by us. The City of Calgary thanks you for your attention and cooperation.

> -----Original Message-----
> From: speakup-bounces at braille.uwo.ca 
> [mailto:speakup-bounces at braille.uwo.ca] On Behalf Of Gregory Nowak
> Sent: 2004 August 23 1:48 PM
> To: Speakup is a screen review system for Linux.
> Subject: Re: System wide message:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> - From the smb.conf(5) man page:
> 
> 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 30secs, hope-
>               fully).
> 
>               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:
> 
>               o %s = the filename containing the message.
> 
>               o %t = the destination that the message was sent to
> 	      (probably the server name).
> 
> o %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.
> 
>        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
> 
>        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:
> 
>        message command = rm %s
> 
>        Default: no message command
> 
>        Example: message command = csh -c 'xedit %s; rm %s' &
> 
> Hth.
> 
> Greg
> 
> 
> 




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux