Title: Help with python subprocess.call on s3cmd sync Post by: peteknut on December 03, 2009, 02:45:47 AM I'm having a tough time using a subprocess.call to run s3cmd
here is where I'm stuck: subprocess.call(["python", "s3cmd","sync", "C:\filepath", "S3://bucketpath"]) other lines have worked fine such as: subprocess.call(["python", "s3cmd", "ls" "S3://bucktpath"]) Thanks for your help!! I'm really stuck on this. Title: Re: Help with python subprocess.call on s3cmd sync Post by: ferrix on December 04, 2009, 05:51:06 PM I don't understand where you're coming up with your syntax. s3cmd has no argument "sync". There's no "S3:://". I think you may have confused my code with someone else's tools....
Title: Re: Help with python subprocess.call on s3cmd sync Post by: lejarrag on May 20, 2010, 04:27:02 PM There is guy by the name of Michal Ludvig who wrote a script in Python called "s3cmd" with that syntax:
http://s3tools.org/s3cmd I didn't try that code. Title: Re: Help with python subprocess.call on s3cmd sync Post by: ferrix on May 20, 2010, 09:38:26 PM Yeah s3cmd is a name of more than one thing. That's probably what it was.
|