Command to check that a directory changes

ESGLinux esggrupos at gmail.com
Thu Nov 4 10:05:06 UTC 2010


2010/10/29 inode0 <inode0 at gmail.com>

> On Fri, Oct 29, 2010 at 4:08 AM, ESGLinux <esggrupos at gmail.com> wrote:
> > Hi all,
> >
> > I´m making a bash script and I need to know when a new file appears in a
> > directory.
> >
> > anybody knows if is there a command that to that or i need to use a
> > commbination of some commands  (ls, wc, sleep, cron...)
>
> You might find inotifywait useful for this.
>
> John
>
>
wow!

Very good command. I didn´t know about it but it looks very powerfull.

I have solved my problem using stat but this command is better!!!

Thank you very much

ESG




> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



More information about the redhat-list mailing list