Closed Thread Icon

Topic awaiting preservation: monitor folder on server? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29701" title="Pages that link to Topic awaiting preservation: monitor folder on server? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: monitor folder on server? <span class="small">(Page 1 of 1)</span>\

 
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-19-2007 20:25

Was wondering what the best way to monitor a folder on a server would be?

I have anonymous FTP set up on a server, when a file is uploaded to the site, I would like to have an email shot off to specific people along with the filename saying "File whatever.psd has been uploaded successfully" or something to the nature.

Thanks in advance!

Later,

C:\

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

posted 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.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-20-2007 14:38
quote:

zavaboy said:

Sounds like something for a cron job.



yeah, this lovely host that we have doesn't allow me to set up cron jobs....nice huh?

Later,

C:\

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted 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.


Justice 4 Pat Richard

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-21-2007 17:41
quote:

Skaarjj said:

can you set up an at job?



What's an at job?

Later,

C:\

Lord_Fukutoku
Paranoid (IV) Inmate

From: San Antonio
Insane since: Jul 2002

posted posted 11-21-2007 19:39

I believe this is what Skaarjj is talking about: at command

--

Any sufficiently advanced bug is indistinguishable from a feature.

(Edited by Lord_Fukutoku on 11-21-2007 19:40)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 11-21-2007 23:24

Gotcha. thanks. I'll take a look at that and see if I can get that going.

I think we are switching hosting companies soon anyway. I didn't get to have a say in the hosting company we currently have. Restricted to 25 emails, no PHP-FTP (but they do have Register Globals on for me ). They pretty much suck.

Thanks for the info though. I'll see if I can get that going

Later,

C:\

(Edited by CPrompt on 11-21-2007 23:25)

« BackwardsOnwards »

Show Forum Drop Down Menu