cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Listing Files on MVS Host

From: Jeff Seeman <JSeeman_at_dir.ca.gov>
Date: Mon, 18 Aug 2008 14:05:37 -0700

Thanks, Dan.

I changed the string to this:

'ls \'IR.WCEDEX.EDEX3.REC0*.DT*.TM*\''

Yet I continue to get the same errors.

Dan, if you don't like the "-X" syntax, what alternative would you
suggest for listing the file names rather than getting the actual file?

Jeff

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Monday, August 18, 2008 1:59 PM
To: curl-users_at_cool.haxx.se
Subject: Re: Listing Files on MVS Host

On Mon, Aug 18, 2008 at 11:45:20AM -0700, Jeff Seeman wrote:
> I have a curl command string in Solaris that successfully downloads
> files from an MVS server:
>
> curl -k --ftp-ssl-reqd -u irseem:levi12 --use-ascii -Q 'site recfm=fb'

> -O --remote-name
"ftp://mvssy5.teale.ca.gov:2121/\'IR.WCEDEX.EDEX3.REC0*.DT*.TM*\'
> "
>
> Now I want to be able to list the same files on the MVS server without

> actually downloading them. I tried the following without success:
>
> curl -k --ftp-ssl-reqd -u irseem:levi12 --use-ascii -Q 'site recfm=fb'

> "ftp:// mvssy5.teale.ca.gov/2121" -X 'ls
'\'*IR.WCEDEX.EDEX3.REC0*.DT*.TM*\''
>
> When I try executing that command string I get this error:
>
> /space/home/edexdb/curl> ./get_test.sh
> ./get_test.sh: line 1: unexpected EOF while looking for matching `''
> ./get_test.sh: line 2: syntax error: unexpected end of file
>
> Any suggestions? Thank you.

The error message is pretty self-explanatory--you have three unescaped
single quote characters after the -X, an odd number. But are you sure
that you want that -X command there? That's not a standard FTP command.
And the second command doesn't specify a port number, whereas the first
does.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-18