We are currently hosting a website on a FreeBSD server, which I am unfamiliar with.
Clients are used various packages to FTP files to our server for loading into our database. Is there any way to check for any FTP connections currently open before I start processing the data.
I will be setting up a cron job to convert and upload the data, but if someone is still uploading then the data will be incomplete. So I want to wait until all FTP have finished and possibly lock anyone from uploading anything further, until the process is complete.
The packages cannot be changed as they form the part of other peoples business suites.
The "w" command (unix -who) lists the users currently logged in but not users going through the FTP daemon.
So can anyone tell me how to get information from the FTP daemon from within a PHP script.