We use a trigger file concept. The downloading party downloads a trigger file when all of their files have been downloaded.
We don’t process any of their files until we see that the trigger file is present.
File name ‘all.don’ or something equally clever.
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Greg Wilburn
Sent: Thursday, January 8, 2026 4:18 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: SFTP client
We are doing an increasing number of data exchanges using SFTP... I have been using the OpenSSH and scripting to accomplish this. However, we recently ran into issues where our script may have inadvertently deleted files.
The script runs "get *.csv" followed by "rm *.csv".
We think that the other party was uploading files at the same time I was downloading (several hundred or more files). So I'm looking for some way (or something) to better manage this for me.
TIA,
Greg
[Logo]<
https://www.totalbizfulfillment.com> Greg Wilburn
Director of IT
301.895.3792 ext. 1231
301.895.3895 direct
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx%3cmailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>>
1 Corporate Dr
Grantsville, MD 21536
http://www.totalbizfulfillment.com<
http://www.totalbizfulfillment.com<
http://www.totalbizfulfillment.com>>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.