It was a permissions issue, this was the fix:
Edit the sudoers file (with visudo) and add a rule that allows the web
server user to run the command without a password. For example:
www-data ALL=NOPASSWD: /path/to/script
On 3/4/11 8:06 PM, Jason Quick wrote:
I'm pretty sure your "--" statements need to come before any other
arguments, including paths, i.e.:
/installs/s3cmd/s3cmd ls--config="/root/.s3cfg"
"s3://assets.xxxxxxxxx.com/downloads/WAV/A10237"
--Jason
On 3/4/2011 10:52 PM, Grig wrote:
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.http://p.sf.net/sfu/progress-d2d
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general
--
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
http://www.tcsorlando.com
------------------------------------------------------------------------------
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. http://p.sf.net/sfu/progress-d2d
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general
------------------------------------------------------------------------------
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. http://p.sf.net/sfu/progress-d2d
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general