X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Richard Ivarson <RiIvarson@gmail.com>
Subject:  Re: Webdav cadaver: script possible?
Date:  Tue, 11 Sep 2007 22:47:38 +0200
Lines: 33
Message-ID: <fc6uuu$vbn$1@sea.gmane.org>
References:  <fbrfm3$942$1@sea.gmane.org> <fc46eo$fne$1@sea.gmane.org> <fc5j2j$nif$1@sea.gmane.org>
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: <fc5j2j$nif$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

