Add all the source files from the old CVS tree,
[import/samba-docs-svnimport.git] / smbdotconf / misc / preexec.xml
1 <samba:parameter name="preexec"
2                  context="S"
3                  type="string"
4                  advanced="1" developer="1"
5                  xmlns:samba="http://samba.org/common">
6  <synonym>exec</synonym>
7 <description>
8         <para>This option specifies a command to be run whenever 
9         the service is connected to. It takes the usual substitutions.</para>
10
11         <para>An interesting example is to send the users a welcome 
12         message every time they log in. Maybe a message of the day? Here 
13         is an example:</para>
14
15         <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>
16
17         <para>Of course, this could get annoying after a while :-)</para>
18
19         <para>See also <link linkend="PREEXECCLOSE"><parameter moreinfo="none">preexec close</parameter></link> and <link 
20         linkend="POSTEXEC"><parameter moreinfo="none">postexec
21         </parameter></link>.</para>
22 </description>
23
24 <value type="default"></value>
25 <value type="example">echo \&quot;%u connected to %S from %m (%I)\&quot; &gt;&gt; /tmp/log</value>
26 </samba:parameter>