I have written a samll sftp script abc.sh as below
sftp user@remote-server <<EOF
lcd /home/gopi
cd /home/raju
get COA
exit
EOF
Its working. But when i rin the script, it gives the acknowledgement like ,
sftp> lcd /home/gopi
sftp> cd /home/raju
sftp> get COA
Fetching /home/ndw/COA to COA 100% 5 0.2KB/s 00:02
sftp> exit
But i dont need these acknowledgement. But i need only incase of error. Is there any option to compress all these acknowledgement.?