bkone
bkone

Reputation: 251

how do we setup s3cmd on windows7

I have successfully installed s3cmd(http://s3tools.org/s3cmd) on a windows 7 machine. I first installed python 2.7 added python to my path then ran python setup.py install I also added the python\scripts folder to my path but I can't run s3cmd from the dos prompt by simply running s3cmd but I can run the command if I use the full path like this

> python c:\Python27\Scripts\s3cmd

My issue is that I use ruby rake to automate some tasks and it needs to run on both windows & mac, is there a way I could simply run s3cmd like I would on linux or a mac?

Thanks!!

Upvotes: 3

Views: 2326

Answers (2)

Bigue Nique
Bigue Nique

Reputation: 391

Type this in a s3cmd.bat (or s3cmd.cmd) in a place somewhere in your path:

python C:\Python27\Scripts\s3cmd %*

And you should be able to cast commands like s3cmd sync --etc...!

Upvotes: 0

Alex from Jitbit
Alex from Jitbit

Reputation: 60782

Just in case: we built a free open-source analog s3cmdwin - a very (very!) simple command line tool to upload a file to s3 or list existing files in a bucket, based on Amazon's nuget-published SDK.

Disclaimer: I'm one of the contributors.

Upvotes: 1

Related Questions