print "\cD"; [download]
Perhaps you need the Expect module?
In reply to Re: EOF character by jwkrahn in thread EOF character by henrikbe