Solved

Inotify help

Posted on 2015-01-05
5
169 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 61

Accepted Solution

by:
gheist earned 500 total points
Comment Utility
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
Comment Utility
Hi Gheist,

Any sample snipped pls. or link to go thru.

Thanks
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Sniple? How the other server will send the acknowledgement?
0
 
LVL 5

Author Comment

by:magento
Comment Utility
If i send a file with name - a.txt they will send acknowledgement file a.txt_mapped.
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Not sufficient information to script anything.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

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…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…

763 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