[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Inotify help

Posted on 2015-01-05
5
Medium Priority
?
196 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
[X]
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
5 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

650 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