Add new framework for smb.conf(5). Please read README before trying to compile.
[Samba/gebeck_regimport.git] / docs / docbook / smbdotconf / misc / preexec.xml
blobfc047e008de002fd88ccae2b41298a57b9c4c5d4
1 <samba:parameter xmlns:samba="http://samba.org/common">
2                 <term><anchor id="PREEXEC"/>preexec (S)</term>
3                 <listitem><para>This option specifies a command to be run whenever 
4                 the service is connected to. It takes the usual substitutions.</para>
6                 <para>An interesting example is to send the users a welcome 
7                 message every time they log in. Maybe a message of the day? Here 
8                 is an example:</para>
10                 <para><command moreinfo="none">preexec = csh -c 'echo \&quot;Welcome to %S!\&quot; |
11                  /usr/local/samba/bin/smbclient -M %m -I %I' &amp; </command></para>
13                 <para>Of course, this could get annoying after a while :-)</para>
15                 <para>See also <link linkend="PREEXECCLOSE"><parameter moreinfo="none">preexec close
16                 </parameter></link> and <link linkend="POSTEXEC"><parameter moreinfo="none">postexec
17                 </parameter></link>.</para>
19                 <para>Default: <emphasis>none (no command executed)</emphasis></para>
20                 <para>Example: <command moreinfo="none">preexec = echo \&quot;%u connected to %S from %m
21                 (%I)\&quot; &gt;&gt; /tmp/log</command></para>
22                 </listitem>
23                 </samba:parameter>