February 02, 2014, 01:24:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / General Discussion / load_path for running from a different directory on: August 30, 2007, 11:30:59 AM
If you add this line to the top of your s3cmd.rb, you can run the script from anywhere.

$LOAD_PATH << File.expand_path(File.dirname(__FILE__))

Also, just preference, I like to put the s3sync folder in my path, and then have aliases like this setup...
alias s3lb='s3cmd.rb listbuckets'
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!