Fix some minor typos
[Samba/gebeck_regimport.git] / docs / docbook / smbdotconf / misc / preexec.xml
blob49c73d94915cdf72e25541dfe7d392fa7c6908bf
1 <samba:parameter name="preexec"
2                  context="S"
3                  advanced="1" developer="1"
4                  xmlns:samba="http://samba.org/common">
5 <listitem>
6         <para>This option specifies a command to be run whenever 
7         the service is connected to. It takes the usual substitutions.</para>
9         <para>An interesting example is to send the users a welcome 
10         message every time they log in. Maybe a message of the day? Here 
11         is an example:</para>
13         <para><command moreinfo="none">preexec = csh -c 'echo \&quot;Welcome to %S!\&quot; | /usr/local/samba/bin/smbclient -M %m -I %I' &amp; </command></para>
15         <para>Of course, this could get annoying after a while :-)</para>
17         <para>See also <link linkend="PREEXECCLOSE"><parameter moreinfo="none">preexec close</parameter></link> and <link 
18         linkend="POSTEXEC"><parameter moreinfo="none">postexec
19         </parameter></link>.</para>
21         <para>Default: <emphasis>none (no command executed)</emphasis></para>
23         <para>Example: <command moreinfo="none">preexec = echo \&quot;%u connected to %S from %m (%I)\&quot; &gt;&gt; /tmp/log</command></para>
24 </listitem>
25 </samba:parameter>