Inotify help

Posted on 2015-01-05
Last Modified: 2015-01-19
Hi ,

We have a requirement to transfer only n of files to another server for processing.
If the destination server process 1 file then there will be acknowledgement sent to us , so now in destination server  n-1 files are there , so i have to transfer one more file at that time.

Is this can be achived via inotify or any other methods? Please provide some examples on inotify.

Question by:magento
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 62

Accepted Solution

gheist earned 500 total points
ID: 40534066
It can be achieved with a counter.

inotify is a fancy select() call, of no use for you at all.

Author Comment

ID: 40534566
Hi Gheist,

Any sample snipped pls. or link to go thru.

LVL 62

Expert Comment

ID: 40534630
Sniple? How the other server will send the acknowledgement?

Author Comment

ID: 40534813
If i send a file with name - a.txt they will send acknowledgement file a.txt_mapped.
LVL 62

Expert Comment

ID: 40535257
Not sufficient information to script anything.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Real Time Memory on Distinct 24 Cycle 7 45
LogmeIn using Linux Ubuntu 16.04 6 116
trouble on installing syslog-ng on CentOS 7 7 100
Windows 10 linux VM 18 42
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question