Ideally, when connecting to from AS400 to the SFTP server, the commands which work on AS400 shell prompt should work there also, is my understanding. With this understanding, I am not able to get the reason for below.
When using ls command on shell prompt (CALL QP2TERM), I am able to suppress the ls command error using "2> /dev/null". As below.
ls *.txtls: 0653-341 The file *.txt does not exist.
ls *.txt 2> /dev/null$
But when I execute the same on SFTP server (windows server), this is how it is.
sftp email@example.com<mailto:firstname.lastname@example.org>Connecting to 172.17.186.170...
ls *.txtCan't ls: "/*.txt" not found
ls *.txt 2> /dev/nullCan't ls: "/*.txt" not found
Why is there a difference in behavior of ls command on the QSHELL and SFTP server? How do we suppress these errors on a batch SFTP connection?
Chella Govindarajan R,
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin@xxxxxxxxx <mailto:mailadmin@xxxxxxxxx>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of
software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com <http://www.igate.com>.
This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact