× 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.



Patrick,
I think scp will work. I tried the commands you suggested and I get the error that the file or directory does not exist, which is correct since the file is only available for download once a month. I get the same results from both the CL program and in the QP2TERM window. I am trying to contact the bank now to have them put a test file on the SFTP site so I can make sure this will work.

Thanks so much for your help!! I will let you know what happens.




Terry Anderson



message: 5
date: Mon, 9 Mar 2020 15:13:10 +0100
from: Patrik Schindler <poc@xxxxxxxxxx>
subject: Re: Strange SFTP behavior

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://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.pocnet.net%2fpoc%2dkey.asc&umid=6776f3bc-b280-44e6-9d15-515bebcc1a21&auth=132537473e7faeb8041d8315ec2ebd5fdf75a2eb-9df738e27456940f7d3d5a30d91af9409c1ecd41




------------------------------

Subject: Digest Footer

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) digest list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2flists.midrange.com%2fmailman%2flistinfo%2fmidrange%2dl&umid=6776f3bc-b280-44e6-9d15-515bebcc1a21&auth=132537473e7faeb8041d8315ec2ebd5fdf75a2eb-f2f28946161b9866a7287bfe530a9f22ccfc3727
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2farchive.midrange.com%2fmidrange%2dl&umid=6776f3bc-b280-44e6-9d15-515bebcc1a21&auth=132537473e7faeb8041d8315ec2ebd5fdf75a2eb-3cc3b6ce06a8bf28e58424e962cd9300433659a8.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2famazon.midrange.com&umid=6776f3bc-b280-44e6-9d15-515bebcc1a21&auth=132537473e7faeb8041d8315ec2ebd5fdf75a2eb-76200c8161fe185ad47eff2c2f91363817630901


------------------------------

End of MIDRANGE-L Digest, Vol 19, Issue 455
*******************************************

________________________________

________________________________
GREDE LEGAL DISCLAIMER: This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. The information contained in this E-mail message and its attachments is privileged and/or confidential, and may be protected from disclosure. Please be aware that any other use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.