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 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 40
Shell Script on AIX 7 94
video edge NVR Device Discovery Problem 4 45
android secure ftp 3 30
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…
Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

815 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

11 Experts available now in Live!

Get 1:1 Help Now