Patrick,
Thanks for the reply.

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

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.


scriptname.sftp contains the lines below.

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

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.

We do have one other program that uses SFTP. It has not been recompiled and it is still working. Not sure if that means anything or not.


Terry Anderson

message: 1
date: Fri, 6 Mar 2020 23:53:19 +0100
from: Patrik Schindler <poc@xxxxxxxxxx>
subject: Re: Strange SFTP behavior

Hello Terry,

Am 06.03.2020 um 21:42 schrieb Terry Anderson <Terry.Anderson@xxxxxxxxx>:

Recently they were recompiled, after which they started throwing an error that said "Cannot download non-regular file: /".

That's really strange. It's especially interesting, because (command line modified for better readability)

sftp -vvv -b /BankName/scriptname.sftp user@xxxxxxxx: >
/SFTP_Logs/verbose.txt 2>&1

Is clearly an upload (push) and not a download (pull) as you state. So maybe the error message is completely unrelated to the problem you face?

Have major changes happened on the system since the last compile, like an OS Upgrade?

Does this error happen every time you run the scripts from CL, or only sometimes?

: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=90126ae9-5585-4b6a-aa55-f7722df2402d&auth=132537473e7faeb8041d8315ec2ebd5fdf75a2eb-69276fdb92ac8e15f02bbd984a1ae939781357b9



________________________________

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