wafsamba: fix pidl dependencies to rebuild on pidl changes
[Samba.git] / docs-xml / smbdotconf / misc / preexec.xml
blobe5d07ef13464ea6219ffaf90f0d84c5d6660cb5e
1 <samba:parameter name="preexec"
2                  context="S"
3                  type="string"
4                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
5 <synonym>exec</synonym>
6 <description>
7         <para>This option specifies a command to be run whenever 
8         the service is connected to. It takes the usual substitutions.</para>
10         <para>An interesting example is to send the users a welcome 
11         message every time they log in. Maybe a message of the day? Here 
12         is an example:</para>
14         <para>
15         <command moreinfo="none">preexec = csh -c 'echo \&quot;Welcome to %S!\&quot; |
16         /usr/local/samba/bin/smbclient -M %m -I %I' &amp; </command>
17         </para>
19         <para>Of course, this could get annoying after a while :-)</para>
21         <para>
22         See also <smbconfoption name="preexec close"/> and <smbconfoption name="postexec"/>.
23         </para>
24 </description>
26 <value type="default"></value>
27 <value type="example">echo \&quot;%u connected to %S from %m (%I)\&quot; &gt;&gt; /tmp/log</value>
28 </samba:parameter>