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
LVL 5
magentoAsked:
Who is Participating?
 
gheistConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.