Re: Command to check that a directory changes
- From: Rohit khaladkar <rohit.khaladkar@xxxxxxxxx>
- Date: Fri, 29 Oct 2010 14:58:59 +0530
You might take the count of the files in the directory and store it in a
file. Run the same script again and compare the count.
the script can be put in the crontab for the same.
Thanks!
Rohit Khaladkar
On Fri, Oct 29, 2010 at 2:38 PM, ESGLinux <esggrupos@xxxxxxxxx> 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...)
Thanks in advance
ESG
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
Thanks!
Rohit Khaladkar
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- Command to check that a directory changes
- From: ESGLinux
- Command to check that a directory changes
- Prev by Date: Re: Command to check that a directory changes
- Next by Date: Re: setting high temperature threshold before server self reboot
- Previous by thread: Re: Command to check that a directory changes
- Next by thread: Re: Command to check that a directory changes
- Index(es):
Relevant Pages
|