Solved

Inotify help

Posted on 2015-01-05
5
186 Views
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.

Thanks
0
Comment
Question by:magento
  • 3
  • 2
5 Comments
 
LVL 62

Accepted Solution

by:
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.
0
 
LVL 5

Author Comment

by:magento
ID: 40534566
Hi Gheist,

Any sample snipped pls. or link to go thru.

Thanks
0
 
LVL 62

Expert Comment

by:gheist
ID: 40534630
Sniple? How the other server will send the acknowledgement?
0
 
LVL 5

Author Comment

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

Expert Comment

by:gheist
ID: 40535257
Not sufficient information to script anything.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

840 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