![]() Topic awaiting preservation: monitor folder on server? (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
![]() Was wondering what the best way to monitor a folder on a server would be? |
Paranoid (IV) Inmate From: f(x) |
![]() Sounds like something for a cron job. If you can make a script (PHP, Perl, Shell, or whatever floats your boat) that checks the directory for any new/updated files since the last check and reports them as you like, then all you have to do is make a cron job run it every minute or so. Be careful with scripts that send emails and cron jobs, you don't want an email sent every time the cron job runs. |
Maniac (V) Inmate From: there...no..there..... |
![]() quote:
|
Maniac (V) Mad Scientist From: :morF |
![]() If you can get shell access, can you set up an at job? it's not that hard to set up an at job that will, when it finishes, will set up another at job, and so on. |
Maniac (V) Inmate From: there...no..there..... |
![]() quote:
|
Paranoid (IV) Inmate From: San Antonio |
![]() I believe this is what Skaarjj is talking about: at command |
Maniac (V) Inmate From: there...no..there..... |
![]() Gotcha. thanks. I'll take a look at that and see if I can get that going. |