ftp -n pipe for error
I have the following korn shell program for SLES 9
ftp -n server.ppd.com <<EOF
user $1 $2
This is working. how do I collect an error?
If I have an error after cd /fs/m/project/fis/
because the path does not exist. Then how can I check.
I see that get the following code
550 /fs/m/project/fis/ : A file or directory in the path name does not exist.
The program continues and does not stop and I can't stop after the error.