My business purpose is to monitor the remote file system on Linux, and if there are any new files, SFTP them to another machine and delete them.
However, the limitation is that I cannot install any libraries on the remote machine. So, I am considering implementing interval SSH command polling to the remote machine.
My questions:
Is interval polling implementable? Or do you have any better ideas?
What kind of SSH command should I use to monitor the remote machine?