Posted by Peter van Schie on 11/18/73 11:43
Colin McKinnon wrote:
> Peter van Schie wrote:
>
> > On Windows you can use Task Scheduler on Linux and UNIX you can use a
> > cronjob, check out: execute the command crontab -e to add the cronjob
> > and check out man crontab.
> >
>
> That's a crappy way to solve the problem. Most times the program runs, the
> file isn't going to be there.
So you check if the file exists in your script...
> Really the most elegant solution would be to get the FTP server to send a
> notification or launch the script itself - but that's not very likely.
Speaking of crappy ways....
Why not just do the most logical thing and use the appropriate services
to solve a problem?
You cannot tell me you'd really modify the code of your ftp server
software to solve a simple problem like this.
> You could redirect the logfile of the FTP server to a program which could
> trigger appropriate responses.
Peter.
--
http://www.phpforums.nl
Navigation:
[Reply to this message]
|