Skip to content

Instantly share code, notes, and snippets.

@lyhcode
Created October 8, 2011 03:40
Show Gist options
  • Save lyhcode/1271820 to your computer and use it in GitHub Desktop.
Save lyhcode/1271820 to your computer and use it in GitHub Desktop.
Groovy using s3cmd upload file to amazon s3 aws.
cmd = "s3cmd put -P filename s3://contpub/filename"
proc = cmd.execute()
proc.waitFor()
println proc.in.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment