I believe if you proceed the ls cmd with a - it will suppress an error
and move to the next job in your ftp script.
On 5/5/2014 3:11 AM, Srinivas Boggula wrote:
I am having 2 versions of i-Series AS400 Servers in our project. One on V5R4M0 and another V7R1M0.
Outline of my requirement:
1. Need to transfer the files from a SFTP server to the above AS400 servers.
1. Logging into the SFTP server from AS400 server
2. Giving "ls *.txt" and then downloading the text files into the AS400 Servers that are listed.
3. Disconnecting from the SFTP server.
When there are no text files on the SFTP server, the V5R4 server doesn't return any error. But the V7R1 returns error which makes the job to go on MSGW. Attached is the error screenshot on the V7R1 server. This error doesn't occur on the V5R4 servers.
Tried using "2> /dev/null" - didn't work on the SFTP server.
Can you please suggest some technique, which could suppress this error?
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>.