Date: Sat, 01 Sep 2018 13:26:12 +0100 From: Jamie Landeg-Jones <jamie@catflap.org> To: wojtek@puchar.net, eugen@grosbein.net Cc: wojtek@puchar.net, freebsd-hackers@freebsd.org Subject: Re: how to use ftp(1) in batch mode Message-ID: <201809011226.w81CQDD8016065@donotpassgo.dyslexicfish.net> In-Reply-To: <alpine.BSF.2.20.1808311551550.4910@puchar.net> References: <alpine.BSF.2.20.1808301449001.26234@puchar.net> <5B87F083.6080804@grosbein.net> <alpine.BSF.2.20.1808311551550.4910@puchar.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Wojciech Puchar <wojtek@puchar.net> wrote: > thank you. it works. actually even without netrc > > (echo command1;echo command2)|ftp ftp://user:password@server/ If you need something slightly more robust, you may want to look at lang/expect, which uses send/expect sequences similar to kermit and uucp, but with more powerful options: man expect(1): | Expect is a program that "talks" to other interactive programs according to a | script. Following the script, Expect knows what can be expected from a program and | what the correct response should be. An interpreted language provides branching and | high-level control structures to direct the dialogue. In addition, the user can | take control and interact directly when desired, afterward returning control to the | script. cheers, Jamie
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809011226.w81CQDD8016065>