I would like to create a loop that repeats a ncftp transfer if it returns an error.
I'm a little unsure how the exit code variable can be used in a loop. Would something like this work?
until [$? == 0]; do ncftpput -DD -z -u user -p password remoteserver /remote/dir /local/file done