Hi All,
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.
$
pwd
/home/disesftp
$
ls *.txt
ls: 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 rimrst@172.17.186.170<mailto:rimrst@172.17.186.170>
Connecting to 172.17.186.170...
sftp>
ls *.txt
Can't ls: "/*.txt" not found
sftp>
ls *.txt 2> /dev/null
Can't ls: "/*.txt" not found
sftp>
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?
Thanks/Best Regards
Chella Govindarajan R,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As an Amazon Associate we earn from qualifying purchases.