#!/usr/bin/env python import os url = 'ftp://ftp.linux16.net/path/to/file' while True: os.system('wget -c %s' % url)