we have a third party integration developed using openssh SFTP implemenation.
our integration is using pub.openssh.sftp.
brief explation of our integration
we get files from external partner GXS–> using sftp–>to webMethods(scheduler runs for every five minutes)–>get all files to local folder and delete them in remote folder
problem is with remove command…
gxs has also schduler which keeps files in monitor using scheduler.
for example scheduler runs for first time and takes 5 mins lets assume… before excuting rm command if gxs keeps some more files in folder…, our inital schedulker is removing all files from remote folder which are not processed aalso.
please suggest any alternative approach?
how to write script if anyine know please let me know…