cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Curl sftp question...

From: Joe Ebmeier <ebmeierj_at_iivip.com>
Date: Thu, 28 Jun 2007 10:13:22 -0500

Hmm... seems to have the same result:

[root_at_vmspot1 joe]# curl -l -u interact:password
"sftp://javadev2/interact/lib/lib*"
curl: (78) Could not open remote file for reading: No such file or directory
[root_at_vmspot1 joe]#

Any other ideas?

Joe Ebmeier
-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Thursday, June 28, 2007 9:53 AM
To: curl-library_at_cool.haxx.se
Subject: Re: Curl sftp question...

On Thu, Jun 28, 2007 at 09:04:26AM -0500, Joe Ebmeier wrote:
> FANTASTIC! So I have just one more question - I still can't use a '*'
with
> curl's sftp, however I can use a '*' with just sftp:
>
> [root_at_vmspot1 joe]# curl -l -u interact:super
> sftp://javadev2/interact/lib/lib*
> curl: (78) Could not open remote file for reading: No such file or
directory
> [root_at_vmspot1 joe]#

You need to put the * in quotes to avoid the shell interpreting it for you
instead of curl. What happens if you do this instead:

        curl -l -u interact:password "sftp://javadev2/interact/lib/lib*"

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-06-28