FTP Newsletter

I ran into a problem on FTP, I would like to know how and the best option for the situation below.

I am dealing with a process that connects via FTP and receives a file using JMS in Informatica Powercenter.

I would like to know if there is a way to get a log saying that there was a connection problem and restart the process using unix script

or

I would like to know if there is a way to detect the problem in the INFORMATICA workflow itself and repeat the process.

+3
source share
2 answers

I use SCP and I have never had a problem, for example:

scp username@ host:Sourcefile Destinationfile
if [ $? = 0 ]
then
echo "Connected and copied the file"
else
echo "ERROR in copying the file using SCP "
fi
+2
source

grep / ERROR /. grep -, .

, .

0

Source: https://habr.com/ru/post/1770980/


All Articles