From: Jason Q. <ja...@tc...> - 2011-03-05 04:38:51
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> I'm pretty sure your "--" statements need to come before any other arguments, including paths, i.e.:<br> <br> <pre wrap=""><i class="moz-txt-slash"><span class="moz-txt-tag">/</span>installs/s3cmd/s3cmd ls </i><i class="moz-txt-slash">--config="/root<span class="moz-txt-tag">/</span></i>.s3cfg"<i class="moz-txt-slash"> "s3://assets.xxxxxxxxx.com/downloads/WAV/A10237" </i></pre> --Jason<br> <br> On 3/4/2011 10:52 PM, Grig wrote: <blockquote cite="mid:4D7...@lu..." type="cite"> <pre wrap="">Hi there, I call s3cmd from PHP a lot. Up to now I've used the put and get for large file transfers. I've just started working with a way to use the "ls" method, but I get an error I don't understand. This is the call I make from PHP: /installs/s3cmd/s3cmd ls "s3://assets.xxxxxxxxx.com/downloads/WAV/A10237" --config="/root/.s3cfg" And this is what I get back: ERROR: S3 error: 400 (InvalidArgument): Authorization header is invalid -- one and only one ' ' (space) required Anyone have any ideas? Thanks! ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/progress-d2d">http://p.sf.net/sfu/progress-d2d</a> _______________________________________________ S3tools-general mailing list <a class="moz-txt-link-abbreviated" href="mailto:S3t...@li...">S3t...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/s3tools-general">https://lists.sourceforge.net/lists/listinfo/s3tools-general</a> </pre> </blockquote> <br> <pre class="moz-signature" cols="72">-- Sincerely, Jason Quick Owner Total Computer Services, Inc. PO Box 150595 Altamonte Springs, FL 32715 Office: 877-505-2258 x 101 Cell: 407-913-7714 <a class="moz-txt-link-freetext" href="http://www.tcsorlando.com">http://www.tcsorlando.com</a></pre> </body> </html> |