time wget --user=username --password=password -qO - ftp://serverName/file.gz | gunzip -cf > /dev/null
I was only able to do "get filename /dev/null" to redirect it to /dev/null.. However.. what if I want to redirect it to a compression or decompression utility?
Example of ftp script I used:
#!/bin/bash
HOST='server-ip'
USER='username'
PASSWD='password'
FILE=$1
ftp -i -n $HOST <<END_SCRIPT
user ${USER} ${PASSWD}
binary
get $FILE
quit
END_SCRIPT
exit 0
The file I am trying to get is a compressed file, I would like to pipe it into decompression utility like gunzip.
]]>