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
  • 3
  • 2
LVL 61

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 61

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 61

Expert Comment

ID: 40535257
Not sufficient information to script anything.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux ssh 4 57
What language/protocol is the Angular Chat? 2 56
nagios remote hosts 9 43
AWS EC2 PHP code is not being executed code shows on the page instead 8 67
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now