preexec

Tavis Barr tavis at mahler.econ.columbia.edu
Mon Jan 3 03:51:23 GMT 2000


I'm not sure if this is off-topic or not....

I've set up a pre-exec script in smb.conf to put my motd out to my client 
boxes when they log on:

 preexec = csh -c 'cat /etc/motd | /usr/local/samba/bin/smbclient \
           -M %m -I %I' &

It works fine (as long as the motd is under 1k), except that it executes 
at least twice and sometimes more at each login.  Does anyone know what 
might be going on?

(I'm running the HEAD from about 6 months ago on Dec Unix 4.0F against 
NT4sp5.  I'd be happy to send along my smb.conf if anyone wants it.)

Thanks,
Tavis



--------------------------------------------------------

Tavis Barr                           ,-~~-.___.        
Senior Systems Coordinator          / |  '     \             
Institute for Social and Economic  (  )        0               
   Theory and Research              \_/-, ,----'            
509E Int'l Affairs Bldg                ====           //                    
Columbia University                   /  \-'~;    /~~~(O)
212-854-4237                         /  __/~|   /       |    
tavis at mahler.econ.columbia.edu     =(  _____| (_________|

---------------------------------------------------------



















More information about the samba-ntdom mailing list