Topic awaiting preservation: monitor folder on server? (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
posted 11-19-2007 20:25
Was wondering what the best way to monitor a folder on a server would be? |
Paranoid (IV) Inmate From: f(x) |
posted 11-19-2007 23:15
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..... |
posted 11-20-2007 14:38
quote:
|
Maniac (V) Mad Scientist From: :morF |
posted 11-21-2007 10:10
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..... |
posted 11-21-2007 17:41
quote:
|
Paranoid (IV) Inmate From: San Antonio |
posted 11-21-2007 19:39
I believe this is what Skaarjj is talking about: at command |
Maniac (V) Inmate From: there...no..there..... |
posted 11-21-2007 23:24
Gotcha. thanks. I'll take a look at that and see if I can get that going. |