Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use inotify to monitor a folder on my home folder for a long period time.Can inotify be used this way or do i need some kind of a server for this particular purpose.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

It depends what you need to know from monitoring it, but maybe

inotifywait -m -r ~/"The Folder"

is what you want?

share|improve this answer
    
Yes.I am uploading a file in the folder after very 30 minutes.Does inotify have some time limit for instance,can only run for 4 hours or does it run continually as long as the computer is running?.Do i need to start it,stop it,restart it,that kind of thing. –  Gandalf Mar 10 '12 at 14:46
1  
With the -m option, inotifywait will run indefinitely and print events as they happen. There's no time limit. –  geirha Mar 10 '12 at 15:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.