[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ftp -n requires password
Hi
I'm trying to write a simple script that does ftp from a host
to another.
cat <<EOF | ftp host
bin
get fil.tar.gz
EOF
But that didn't work. It seems like it doesn't read the username from stdin.
So I tried this instead
cat <<EOF | ftp -n host
user foo
bin
get fil.tar.gz
EOF
But it seems like -n requires a password even though I have a valid ticket.
Is that a bug in ftp? Or is it for compatibility reasons?
I guess I will have to learn (what to :-) expect.
/Peter