docs:smbdotconf: remove swat-specific flags.
[bbaumbach/samba-autobuild/.git] / docs-xml / smbdotconf / misc / preexec.xml
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>
9
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>
13
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>
18
19         <para>Of course, this could get annoying after a while :-)</para>
20
21         <para>
22         See also <smbconfoption name="preexec close"/> and <smbconfoption name="postexec"/>.
23         </para>
24 </description>
25
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>