Hi Jeff,

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

./s3cmd put /blah/blah s://My-Bucket/ >/tmp/blah
or
./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, ...

Thanks,

Mete

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

Jeff

------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general