× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Terry,

Am 09.03.2020 um 14:37 schrieb Terry Anderson <Terry.Anderson@xxxxxxxxx>:

First let me say I don't know a lot about SFTP. It is not something we use a lot around here.

Okay. Then I'd recommend to try to replace the clumsy sftp with scp, which is essentially the same.

My understanding on how the command in the CL program is supposed to work is, once the connection is made the script on my IFS which is called. That scrip is /BankName/scriptname.sftp. For clarity purposes , I should have called it /IFS_DIRECTORY/scriptname.sftp. Sorry for the confusion.

Ah, okay. Thanks for clarification.

scriptname.sftp contains the lines below.

get "FILE NAME.*" /IFS_DIRECTORY/download.txt
exit

Are there truly blanks in the file name? Could be troublesome.

No other changes have taken place on the system. Like I said before, I can copy and paste the command from the CL program directly into the QP2TERM window and it works. It fails every time when running from the CL.

I understand. I can't just see what might be the problem. It must be some variable or wildcard expansion which suddenly fails. Or, there was a coincidental change at the remote side, maybe? For a reason beyond me, "Bank File Name.*" apparently matches /. A rough guess could be that the directory you're accessing suddenly contains a subdirectory which also matches on "Bank File Name.*".

May I ask you to try:

scp -r user@xxxxxxxx:"Bank File Name.*" /IFS_Directory/

and see what will actually be downloaded. Next, try

scp user@xxxxxxxx:"Bank File Name.*" /IFS_Directory/download.txt

as (temporary) debugging aid in your script.

I'm curious about the outcome!

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.