• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Inotify help

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
magento
Asked:
magento
  • 3
  • 2
1 Solution
 
gheistCommented:
It can be achieved with a counter.

inotify is a fancy select() call, of no use for you at all.
0
 
magentoAuthor Commented:
Hi Gheist,

Any sample snipped pls. or link to go thru.

Thanks
0
 
gheistCommented:
Sniple? How the other server will send the acknowledgement?
0
 
magentoAuthor Commented:
If i send a file with name - a.txt they will send acknowledgement file a.txt_mapped.
0
 
gheistCommented:
Not sufficient information to script anything.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now