Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Execute on file access

0 views
Skip to first unread message

sp...@itserv.de

unread,
Jul 5, 2007, 2:50:07 AM7/5/07
to
Hi Samba-Folks,

it might be a feature request, it might the the proof that I'm too stupid
to find it in the documentation:

I'd like to execute a binary program on each file which gets stored or
modified on the samba server. Is that possible?

I'd like to store images on a samba server, and from each image stored a
thumbnail should be calculated. Thus, after a file is created/modified, I
need to call a program passing the path name of the stored/modified file
as a parameter.

You might as well think about calling a virus scanner on the file just
stored.

I know that this might be a performance issue, but that will be my problem
- not yours :-)

Thank you for your replies,

Peter


--
---------------------------------------------------------------------
Angaben gemäß §35a GmbH-Gesetz:
ITServ GmbH
Sitz der Gesellschaft: 65474 Bischofsheim
Eingetragen unter der Registernummer HRB54785 beim AG Darmstadt
Vertretungsberechtigter Geschäftsführer: Peter Bauer
Umsatzsteuer-ID: DE182270475
---------------------------------------------------------------------

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Volker Lendecke

unread,
Jul 5, 2007, 5:40:06 AM7/5/07
to
On Thu, Jul 05, 2007 at 08:29:47AM +0200, sp...@itserv.de wrote:
> I'd like to store images on a samba server, and from each image stored a
> thumbnail should be calculated. Thus, after a file is created/modified, I
> need to call a program passing the path name of the stored/modified file
> as a parameter.

Write a VFS module that connects to the close operation.

Volker

sp...@itserv.de

unread,
Jul 5, 2007, 6:30:21 AM7/5/07
to
>> I'd like to store images on a samba server, and from each image stored a
>> thumbnail should be calculated. Thus, after a file is created/modified,
>> I
>> need to call a program passing the path name of the stored/modified file
>> as a parameter.
>
> Write a VFS module that connects to the close operation.

Simple enough! Yes, give me two or three minutes, and I'll be done. ;-)

Open Source makes everybody a brilliant programmer, true?

However, thank you for your answer, which reads to a non-programmer like
me as: "no, that feature is missing".

Volker Lendecke

unread,
Jul 5, 2007, 7:10:08 AM7/5/07
to
On Thu, Jul 05, 2007 at 12:22:57PM +0200, sp...@itserv.de wrote:
> >> I'd like to store images on a samba server, and from each image stored a
> >> thumbnail should be calculated. Thus, after a file is created/modified,
> >> I
> >> need to call a program passing the path name of the stored/modified file
> >> as a parameter.
> >
> > Write a VFS module that connects to the close operation.
>
> Simple enough! Yes, give me two or three minutes, and I'll be done. ;-)
>
> Open Source makes everybody a brilliant programmer, true?
>
> However, thank you for your answer, which reads to a non-programmer like
> me as: "no, that feature is missing".

Yep. Feel free to look at http://samba.org/samba/support/ to
find someone do it for you :-)

Volker

Jeremy Allison

unread,
Jul 5, 2007, 1:00:23 PM7/5/07
to
On Thu, Jul 05, 2007 at 12:22:57PM +0200, sp...@itserv.de wrote:
> >> I'd like to store images on a samba server, and from each image stored a
> >> thumbnail should be calculated. Thus, after a file is created/modified,
> >> I
> >> need to call a program passing the path name of the stored/modified file
> >> as a parameter.
> >
> > Write a VFS module that connects to the close operation.
>
> Simple enough! Yes, give me two or three minutes, and I'll be done. ;-)
>
> Open Source makes everybody a brilliant programmer, true?
>
> However, thank you for your answer, which reads to a non-programmer like
> me as: "no, that feature is missing".

You always have the option to purchase programmer time to implement
a feature like that. On closed source systems "no, that feature is missing"
would be your only answer until enough people complained or the
company providing the software went out of business.

Jeremy

0 new messages