1 <samba:parameter name="preexec"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
5 <synonym>exec</synonym>
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
15 <command moreinfo="none">preexec = csh -c 'echo \"Welcome to %S!\" |
16 /usr/local/samba/bin/smbclient -M %m -I %I' & </command>
19 <para>Of course, this could get annoying after a while :-)</para>
22 See also <smbconfoption name="preexec close"/> and <smbconfoption name="postexec"/>.
26 <value type="default"></value>
27 <value type="example">echo \"%u connected to %S from %m (%I)\" >> /tmp/log</value>