lftp SPORT -u ${SPID}, ${ServerURL} -e "set ssl:cert-file $SPID_CERT; set sslkey-file $SPID_CERT_KEY;
cd /G/reg_service/
mv file1.txt file2.txt /G/reg_service/2023/OTC/
bye:"

When file1.txt or file2.txt are absent, the command is waiting for a long time. How can you stop this?

If the file is missing, I expect the lftp command to end immediately.

0

There are 0 best solutions below