user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] ssoma: --cron implies --quiet
@ 2014-04-21  9:43 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-04-21  9:43 UTC (permalink / raw)
  To: meta; +Cc: Eric Wong

cronjobs should be quiet, since cron default to emailing the user
on output.
---
 ssoma | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ssoma b/ssoma
index dabd511..ef99a00 100755
--- a/ssoma
+++ b/ssoma
@@ -194,6 +194,7 @@ sub foreach_list {
 sub cmd_sync {
 	my ($listname, @targets) = @_;
 	if ($opts{cron}) {
+		$opts{quiet} = 1;
 		sleep(rand(CRON_RAND_DELAY));
 	}
 	if (defined $listname) {
-- 
2.0.0.rc0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-21  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-21  9:43 [PATCH] ssoma: --cron implies --quiet Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).