LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-21-2015, 03:33 AM   #1
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Rep: Reputation: Disabled
Incrontab Directory Change (watched Folder = Mounted FTP Account)


Hello There,

Thanks In advance for the Help!!!

I have a situation that i have mounted Windows FTP account to the Linux Machine. with the help of curlftpFS.

and now i need to create a event driven Watch on the Mounted FTP Account(Windows FTP) on the linux Server.

I need to configure that if any files are transffered to Mounted windows Folder on the linux machine.it must be automatically copied to the other directory on the Linux machine.

and i am using Incrontab For this configuration but Incorntab doesnt seems to work.

I am using this coomand to watch the Mounted Directory.

/tmp/windows-FTP IN_CLOSE_WRITE /bin/cp -rf /tmp/Directory-on-linux

But incron doesnt copy the File to next directory!!!!

can someone have any idea please to resolve this issue.
 
Old 05-23-2015, 07:11 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,680

Rep: Reputation: Disabled
incrontab makes use of the inotify kernel function to trigger on filesystem changes. The problem is probably that your virtual, FTP-based filesystem doesn't actually expose anything like inodes to the kernel.

inotify works fine with locally mounted filesystems (that is, file systems residing on a device represented by a device node), but once you use a network-based filesystem, all bets are off.
 
Old 05-25-2015, 12:18 PM   #3
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
incrontab makes use of the inotify kernel function to trigger on filesystem changes. The problem is probably that your virtual, FTP-based filesystem doesn't actually expose anything like inodes to the kernel.

inotify works fine with locally mounted filesystems (that is, file systems residing on a device represented by a device node), but once you use a network-based filesystem, all bets are off.
Hi

On the Mounted Drive space it works but when i upload the file at this time it doesnt trigger the INCRON dameon.

I have to Touch the file after files are Uploaded to the FTP Mounted Folder nd the Incorn works.

STEPs

/tmp/Mounted-FTP/Watch-folder/ IN_CLOSE_WRITE mv $@$# /tmp/out/

after Uploading the file to watch folder via FileZilla. it doesnt work but if i touch the file again then it triggers.

thanks
 
  


Reply

Tags
centos, curlftpfs, watch, window


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to change var folder to a new mounted raid 1 drive on Centos 6 x64 Adil Boyun Linux - Server 2 11-21-2011 05:39 PM
[SOLVED] Renaming a folder which is default folder for FTP account rjo98 Linux - Newbie 6 02-11-2011 10:30 AM
apache and user web folder under account directory elimq Linux - Server 2 10-27-2009 09:07 AM
local folder mounted as ftp jon23d Linux - Networking 2 06-14-2006 05:26 PM
FTP account upper directory nobu Red Hat 1 11-10-2005 03:59 PM

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

All times are GMT -5. The time now is 01:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration