X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Richard Ivarson Subject: Re: Webdav cadaver: script possible? Date: Tue, 11 Sep 2007 22:47:38 +0200 Lines: 33 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Thorsten Kampe schrieb: > * Richard Ivarson (Mon, 10 Sep 2007 21:37:42 +0200) >> ... or maybe there is another client/programm to access Webdav from within >> Cygwin? >> >> ... or is there any way to feed scripted lines to a standard Cygwin command >> line programm? (Re-direction, somehow?) > > Expect? Thanks for that hint, Thorsten. I didn't know "expect" but it seems very powerful, useful -- and complex to master. :-) Meanwhile due to your hint I've remembered the "simple" redirection method in Windows (and similar in Unix), and tried: cadaver < lines.txt with "lines.txt" holding these three lines: >> USERNAME PASSWORD ls << It partly works: I see that it connects to the Webdav server and prints the directory, so it must have been logged in correctly. However somehow it never comes to line three but just returns... I've got no idea why and also I've got no plan how to make "except" doing the little task. -ric -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/