in reply to knowing when a file is done writing to the server?
Maybe Linux::Inotify2, IO::KQueue, or similar. They are platform dependent.