Discussion:
[S3tools-general] s3cmd quiet mode for cron jobs
Florin Andrei
2014-02-11 00:24:13 UTC
Permalink
The --no-progress option is great, but when running s3cmd from a cron
job, it would be great if it had a quiet mode, where absolutely no
output is generated, unless there's an error.

On many systems, a cron job does not generate an email to the owner if
the command does not produce any output. This way, if the command is
silent unless there's a problem, the cron job also will be quiet as long
as everything is okay.

This helps a lot with keeping the email volume down.

Thanks.
--
Florin Andrei
http://florin.myip.org/
Scott Jacobsen
2014-02-11 00:41:46 UTC
Permalink
I redirect standard out to /dev/null in my cron jobs. s3cmd sends errors to
standard error, so I only get emails on error.
Post by Florin Andrei
The --no-progress option is great, but when running s3cmd from a cron
job, it would be great if it had a quiet mode, where absolutely no
output is generated, unless there's an error.
On many systems, a cron job does not generate an email to the owner if
the command does not produce any output. This way, if the command is
silent unless there's a problem, the cron job also will be quiet as long
as everything is okay.
This helps a lot with keeping the email volume down.
Thanks.
--
Florin Andrei
http://florin.myip.org/
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
S3tools-general mailing list
https://lists.sourceforge.net/lists/listinfo/s3tools-general
Florin Andrei
2014-02-11 02:12:55 UTC
Permalink
I just noticed -q in a newer version (1.5.0-beta). Does that suppress
everything, or does it allow errors to go to stderr?
--
Florin Andrei
http://florin.myip.org/
Matt Domsch
2014-02-11 04:36:44 UTC
Permalink
-q sends stdout to /dev/null. Errors still appear on stderr.
Post by Florin Andrei
I just noticed -q in a newer version (1.5.0-beta). Does that suppress
everything, or does it allow errors to go to stderr?
--
Florin Andrei
http://florin.myip.org/
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
S3tools-general mailing list
https://lists.sourceforge.net/lists/listinfo/s3tools-general
Loading...