Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 19:01:27 +0200 (CEST)
From:      Wojciech Puchar <wojtek@puchar.net>
To:        Jamie Landeg-Jones <jamie@catflap.org>
Cc:        wojtek@puchar.net, eugen@grosbein.net, freebsd-hackers@freebsd.org
Subject:   Re: how to use ftp(1) in batch mode
Message-ID:  <alpine.BSF.2.20.1809011900570.80240@puchar.net>
In-Reply-To: <201809011226.w81CQDD8016065@donotpassgo.dyslexicfish.net>
References:  <alpine.BSF.2.20.1808301449001.26234@puchar.net> <5B87F083.6080804@grosbein.net> <alpine.BSF.2.20.1808311551550.4910@puchar.net> <201809011226.w81CQDD8016065@donotpassgo.dyslexicfish.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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:

yes i've used it few times. thanks

>
> 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?alpine.BSF.2.20.1809011900570.80240>