curl-users
Re: Listing Files on MVS Host
Date: Mon, 18 Aug 2008 13:59:06 -0700
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.htmlReceived on 2008-08-18