This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
[samba.git] / docs / htmldocs / using_samba / ch08_04.html
1 <HTML>
2 <HEAD>
3 <TITLE>
4 [Chapter 8] 8.4 WinPopup Messages</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly &amp; Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:35:55Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></head>
5 <BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC">
6 <table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%">
7 <tr>
8 <td width="25%" valign="TOP">
9 <img hspace=10 vspace=10 src="gifs/samba.s.gif" 
10 alt="Using Samba" align=left valign=top border=0>
11 </td>
12 <td height="105" valign="TOP">
13 <br>
14 <H2>Using Samba</H2>
15 <font size="-1">
16 Robert Eckstein, David Collier-Brown, Peter Kelly
17 <br>1st Edition November 1999
18 <br>1-56592-449-5, Order Number: 4495
19 <br>416 pages, $34.95
20 </font>
21 <p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a>
22 <p><a href="index.html">Table of Contents</a>
23 </td>
24 </tr>
25 </table>
26 <hr size=1 noshade>
27 <!--sample chapter begins -->
28
29 <center>
30 <DIV CLASS="htmlnav">
31 <TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0">
32 <TR>
33 <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">
34 <A CLASS="sect1" HREF="ch08_03.html" TITLE="8.3 Internationalization">
35 <IMG SRC="gifs/txtpreva.gif" ALT="Previous: 8.3 Internationalization" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171">
36 <B>
37 <FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">
38 <A CLASS="chapter" REL="up" HREF="ch08_01.html" TITLE="8. Additional Samba Information ">
39 Chapter 8<br>
40 Additional Samba Information </a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172">
41 <A CLASS="sect1" HREF="ch08_05.html" TITLE="8.5 Recently Added Options">
42 <IMG SRC="gifs/txtnexta.gif" ALT="Next: 8.5 Recently Added Options" BORDER="0"></a></td></tr></table>&nbsp;<hr noshade size=1></center>
43 </div>
44 <blockquote>
45 <div>
46 <H2 CLASS="sect1">
47 <A CLASS="title" NAME="ch08-82569">
48 8.4 WinPopup Messages</a></h2><P CLASS="para">You can use the WinPopup tool (<I CLASS="filename">WINPOPUP.EXE</i>) in Windows to send messages to users, machines, or entire workgroups on the network. This tool is provided with Windows 95 OSR2 and comes standard with Windows 98. With either Windows 95 or 98, however, you need to be running WinPopup to receive and send WinPopup messages. With Windows NT, you can still receive messages without starting such a tool; they will automatically appear in a small dialog box on the screen when received. The WinPopup application is shown in <A CLASS="xref" HREF="ch08_04.html#ch08-66444">
49 Figure 8.1</a>.   </p><H4 CLASS="figure">
50 <A CLASS="title" NAME="ch08-66444">
51 Figure 8.1: The WinPopup application</a></h4><IMG CLASS="graphic" SRC="figs/sam.0801.gif" ALT="Figure 8.1"><P CLASS="para">
52 Samba has a single WinPopup messaging option, <CODE CLASS="literal">
53 message</code> <CODE CLASS="literal">
54 command</code>, as shown in <A CLASS="xref" HREF="ch08_04.html#ch08-18671">
55 Table 8.7</a>.  </p><br>
56 <TABLE CLASS="table" BORDER="1" CELLPADDING="3">
57 <CAPTION CLASS="table">
58 <A CLASS="title" NAME="ch08-18671">
59 Table 8.7: WinPopup Configuration Option </a></caption><THEAD CLASS="thead">
60 <TR CLASS="row" VALIGN="TOP">
61 <TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
62 <P CLASS="para">
63 Option</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
64 <P CLASS="para">
65 Parameter</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
66 <P CLASS="para">
67 Function</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
68 <P CLASS="para">
69 Default</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
70 <P CLASS="para">
71 Scope</p></th></tr></thead><TBODY CLASS="tbody">
72 <TR CLASS="row" VALIGN="TOP">
73 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
74 <P CLASS="para">
75 <CODE CLASS="literal">
76 message command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
77 <P CLASS="para">string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
78 <P CLASS="para">
79 Sets a command to run on Unix when a WinPopup message is received.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
80 <P CLASS="para">
81 None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
82 <P CLASS="para">
83 Global</p></td></tr></tbody></table><DIV CLASS="sect2">
84 <H3 CLASS="sect2">
85 <A CLASS="title" NAME="ch08-pgfId-958949">
86 8.4.1 message command</a></h3><P CLASS="para">
87 Samba's <CODE CLASS="literal">
88 message</code> <CODE CLASS="literal">
89 command</code> option sets the path to a program that will run on the server when a Windows popup message arrives at the server. The command will be executed using the <CODE CLASS="literal">
90 guest</code> <CODE CLASS="literal">
91 account</code> user. What to do with one of these is questionable since it's probably for the Samba administrator, and Samba doesn't know his or her name. If you know there's a human using the console, the Samba team once suggested the following:</p><PRE CLASS="programlisting">
92 [global]
93         message command = /bin/csh -c 'xedit %s; rm %s' &amp;</pre><P CLASS="para">
94 Note the use of variables here. The <CODE CLASS="literal">
95 %s</code> variable will become the file that the message is in. This file should be deleted when the command is finished with it; otherwise, there will be a buildup of pop-up files collecting on the Samba server. In addition, the command must fork its own process (note the &amp; after the command); otherwise the client may suspend and wait for notification that the command was sent successfully before continuing.</p><P CLASS="para">
96 In addition to the standard variables, <A CLASS="xref" HREF="ch08_04.html#ch08-29758">
97 Table 8.8</a> shows the three unique variables that you can use in a <CODE CLASS="literal">
98 message</code> <CODE CLASS="literal">
99 command</code>.   </p><br>
100 <TABLE CLASS="table" BORDER="1" CELLPADDING="3">
101 <CAPTION CLASS="table">
102 <A CLASS="title" NAME="ch08-29758">
103 Table 8.8: Message Command Variables </a></caption><THEAD CLASS="thead">
104 <TR CLASS="row" VALIGN="TOP">
105 <TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
106 <P CLASS="para">
107 Variable</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1">
108 <P CLASS="para">
109 Definition</p></th></tr></thead><TBODY CLASS="tbody">
110 <TR CLASS="row" VALIGN="TOP">
111 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
112 <P CLASS="para">
113 <CODE CLASS="literal">
114 %s</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
115 <P CLASS="para">
116 The name of the file in which the message resides</p></td></tr><TR CLASS="row" VALIGN="TOP">
117 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
118 <P CLASS="para">
119 <CODE CLASS="literal">
120 %</code>f</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
121 <P CLASS="para">
122 The name of the client that sent the message</p></td></tr><TR CLASS="row" VALIGN="TOP">
123 <TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
124 <P CLASS="para">
125 <CODE CLASS="literal">
126 %t</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1">
127 <P CLASS="para">
128 The name of the machine that is the destination of the message </p></td></tr></tbody></table></div></div></blockquote>
129 <div>
130 <center>
131 <hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0">
132 <TR>
133 <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">
134 <A CLASS="sect1" HREF="ch08_03.html" TITLE="8.3 Internationalization">
135 <IMG SRC="gifs/txtpreva.gif" ALT="Previous: 8.3 Internationalization" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171">
136 <A CLASS="book" HREF="index.html" TITLE="">
137 <IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172">
138 <A CLASS="sect1" HREF="ch08_05.html" TITLE="8.5 Recently Added Options">
139 <IMG SRC="gifs/txtnexta.gif" ALT="Next: 8.5 Recently Added Options" BORDER="0"></a></td></tr><TR>
140 <TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172">
141 8.3 Internationalization</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171">
142 <A CLASS="index" HREF="inx.html" TITLE="Book Index">
143 <IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172">
144 8.5 Recently Added Options</td></tr></table><hr noshade size=1></center>
145 </div>
146
147 <!-- End of sample chapter -->
148 <CENTER>
149 <FONT SIZE="1" FACE="Verdana, Arial, Helvetica">
150 <A HREF="http://www.oreilly.com/">
151 <B>O'Reilly Home</B></A> <B> | </B>
152 <A HREF="http://www.oreilly.com/sales/bookstores">
153 <B>O'Reilly Bookstores</B></A> <B> | </B>
154 <A HREF="http://www.oreilly.com/order_new/">
155 <B>How to Order</B></A> <B> | </B>
156 <A HREF="http://www.oreilly.com/oreilly/contact.html">
157 <B>O'Reilly Contacts<BR></B></A>
158 <A HREF="http://www.oreilly.com/international/">
159 <B>International</B></A> <B> | </B>
160 <A HREF="http://www.oreilly.com/oreilly/about.html">
161 <B>About O'Reilly</B></A> <B> | </B>
162 <A HREF="http://www.oreilly.com/affiliates.html">
163 <B>Affiliated Companies</B></A><p>
164 <EM>&copy; 1999, O'Reilly &amp; Associates, Inc.</EM>
165 </FONT>
166 </CENTER>
167 </BODY>
168 </html>