cURL / Mailing Lists / curl-users / Single Mail

curl-users

Listing Files on MVS Host

From: Jeff Seeman <JSeeman_at_dir.ca.gov>
Date: Mon, 18 Aug 2008 11:45:20 -0700

Hi:

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.

-------------------------------------------------------------------
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