[Samba] vfs module for interpreting a script on file access
Hermann Gausterer
mrq1 at gmx.net
Sun Nov 30 22:45:49 GMT 2003
hi
i want to ask a simple question:
exists a samba VFS module for interpreting a file on access?
(mostly the same as a dynamic file on an webserver)
if not, i want to suggest it ;-)
a simple example:
a share with an single MS-DOS .bat file on it;
this .bat file is (for example) a bash script file;
if the file is accessed via SMB than smbd executes this script and
handles the stdout output of the script to the client. the script
must take care of the dos file format (CR,LF) and so an ..
the client does not know this, from client side this is only a .bat
file like each other ... :-)
possible module options would be the $1, $2, .. execparameter
for the scriptfile; (mostly all the smb.conf
"VARIABLE SUBSTITUTIONS" like %U, %I .. and so on)
of course the script should do something dynamic based on this
parameters. this would be ideal for real MS-DOS hosts which
cannat do anything on itself ;-)
i hope, i get some replies here :-)
mfg hermann
More information about the samba
mailing list