Monitoring folder activity
I am in need of a way to trigger an action when a file is written to user's home directories. I am sure there is a way to do this, but I don't know where to look. What I want to do is allow users to sftp a file into their home directory, then once the file is written, I want a server side process to email or otherwise transfer the file to another location so that it can be processed with some third party tools by a Windows user. Can anyone help me out? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring folder activity
At 04:42 PM 12/2/2003, Chad Albert wrote: I am in need of a way to trigger an action when a file is written to user's home directories. Chad, if nothing else couldn't you run a program via cron to do this? Or am I missing something about what makes this more difficult? Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Monitoring folder activity
Yes, I thought of that and there is no reason I can't. I just didn't want to go around re-inventing any wheels if there was a better way to do it. -- Chad -Original Message- From: Marty Landman [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 4:49 PM To: Chad Albert; [EMAIL PROTECTED] Subject: Re: Monitoring folder activity At 04:42 PM 12/2/2003, Chad Albert wrote: I am in need of a way to trigger an action when a file is written to user's home directories. Chad, if nothing else couldn't you run a program via cron to do this? Or am I missing something about what makes this more difficult? Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring folder activity
On Tue, Dec 02, 2003 at 03:42:27PM -0600, Chad Albert wrote: I am in need of a way to trigger an action when a file is written to user's home directories. I am sure there is a way to do this, but I don't know where to look. What I want to do is allow users to sftp a file into their home directory, then once the file is written, I want a server side process to email or otherwise transfer the file to another location so that it can be processed with some third party tools by a Windows user. Can anyone help me out? I think the l0pht-watch port can do this. Kris pgp0.pgp Description: PGP signature
Re: Monitoring folder activity
On Tue, 2 Dec 2003 15:42:27 -0600 Chad Albert [EMAIL PROTECTED] wrote: I am in need of a way to trigger an action when a file is written to user's home directories. I am sure there is a way to do this, but I don't know where to look. What I want to do is allow users to sftp a file into their home directory, then once the file is written, I want a server side process to email or otherwise transfer the file to another location so that it can be processed with some third party 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Monitoring folder activity
That sound like it is exactly what I need, Thanks! -- Chad -Original Message- From: Chris Pressey [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 5:38 PM To: Chad Albert Cc: [EMAIL PROTECTED] Subject: Re: Monitoring folder activity On Tue, 2 Dec 2003 15:42:27 -0600 Chad Albert [EMAIL PROTECTED] wrote: I am in need of a way to trigger an action when a file is written to user's home directories. I am sure there is a way to do this, but I don't know where to look. What I want to do is allow users to sftp a file into their home directory, then once the file is written, I want a server side process to email or otherwise transfer the file to another location so that it can be processed with some third party 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]