Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2003 17:56:32 -0600
From:      "Chad Albert" <Chad.Albert@myhealthcarefirst.com>
To:        "Chris Pressey" <cpressey@catseye.mine.nu>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Monitoring folder activity
Message-ID:  <433CEE75B1339547BBB373B3406653840DFE71@hfmail01.sgf.healthcarefirst.med>

next in thread | raw e-mail | index | archive | help
=20
That sound like it is exactly what I need, Thanks!


-- Chad


-----Original Message-----
From: Chris Pressey [mailto:cpressey@catseye.mine.nu]=20
Sent: Wednesday, December 03, 2003 5:38 PM
To: Chad Albert
Cc: freebsd-questions@freebsd.org
Subject: Re: Monitoring folder activity

On Tue, 2 Dec 2003 15:42:27 -0600
"Chad Albert" <Chad.Albert@myhealthcarefirst.com> wrote:

> I am in need of a way to trigger an action when a file is written to=20
> user's home directories.  I am sure there is a way to do this, but I=20
> don't know where to look.  What I want to do is allow users to sftp a=20
> file into their home directory, then once the file is written, I want=20
> a server side process to email or otherwise transfer the file to=20
> another location so that it can be processed with some third party=20
> tools by a Windows user.  Can anyone help me out?

Have a look at /usr/ports/sysutils/wait_on

"The wait_on command allows shell scripts to access the facilities
provided by kqueue(3). This allows scripts to detect files being added
to directories, data appended to files and many other things - all
without polling."

-Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?433CEE75B1339547BBB373B3406653840DFE71>