I need to get an image from S3, process it on an ec2, and save it to a different folder on S3. I would like to not save the file to ec2 during the process.
Is it possible to pipe the result of "s3cmd get s3://bucket/image" to a var? It does not seem to print to standard output?
It would be better if you could show which output produce
s3cmd
in your case. But if you really want to save the output of the command to a variable you do it this way:When you want to save
stderr
also, you make:And when only
stderr
: