S3Sync.net
February 02, 2014, 01:19:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help with python subprocess.call on s3cmd sync  (Read 6220 times)
peteknut
Newbie
*
Posts: 1


View Profile
« 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.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 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....
Logged
lejarrag
Newbie
*
Posts: 16


View Profile
« Reply #2 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.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #3 on: May 20, 2010, 09:38:26 PM »

Yeah s3cmd is a name of more than one thing.  That's probably what it was.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!