Hi Jeff,

I don't see it working with tee. Nothing is coming out.

./s3cmd put /blah/blah s://My-Bucket/ >/tmp/blah
./s3cmd put /blah/blah s://My-Bucket/ | tee /tmp/blah

/tmp/blah is always empty.

When you use tee, do you see the periodic upload progress stdouts in your logs? percentage, kb uploaded, ...



On Thu, Jun 23, 2011 at 12:06 PM, Jeff Ross <jross@openvistas.net> wrote:
On 06/23/11 12:28, Mete Rodoper wrote:
> Hello,
> Is there a way to direct the put command's stdout to a file? Can the
> progress thatís being printed to the screen be directed to a file?
> Stdout ">" and stderr "2>" didnít work.
> Thanks,
> Mete

How about tee?

Here's what I use in cron:

/etc/scripts/daily_backup_for_s3.sh 2>&1 |\
† † † †tee /var/log/s3_backup_`/bin/date +\%d`.out |\
† † † †mail -s "Daily S3 Backup" root


Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
S3tools-general mailing list