LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2010, 09:10 AM   #1
spiriad
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
Question FTP monitoring/actions


Hello there,

I have the following situation : I have a ftp server (PureFTPd)on which users can connect and put their files. The thing is I need to synchronize the files uploaded by the users to another server (so that everybody can download (via http) from that server the resources uploaded by the each of them). Right now, I do this thing manually, after the user alerts me that he uploaded new files to his box.
The problem is not, how to transfer files from a place to another, but how to monitorize when a user uploads new files ?
Checking permanently the log file would be a solution, but is to inefficient. I need/want something that alerts me when a user disconnects from server, and then run the synchronize script.
So, is there any way I can do this ?


Thanx,
Adrian
 
Old 07-26-2010, 12:41 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Inotify to list what's new, loop /sbin/fuser over the list to check if it's still in use, if yes then sleep, else cp?
 
Old 07-27-2010, 08:18 AM   #3
denword
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
Smile

<<mod edit>> advertising deleted

Last edited by pixellany; 07-31-2010 at 07:22 AM.
 
Old 07-31-2010, 07:25 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
denword;

If you want to advertise here, please see the links at the bottom of the page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring a FTP server naw_deepak Linux - General 2 01-13-2009 10:37 PM
Monitoring free memory with enterprise monitoring application Steelb Linux - Enterprise 2 02-13-2008 10:10 AM
Traffic Monitoring on an FTP Server shawnbishop Linux - Software 3 01-13-2008 11:27 PM
FTP Monitoring? againstms Linux - General 3 03-01-2005 10:24 AM
monitoring actions in screen zeky Linux - Networking 5 09-04-2002 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration