projects
/
ssoma-mda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
756f917
)
ssoma: --cron implies --quiet
author
Eric Wong
<normalperson@yhbt.net>
Mon, 21 Apr 2014 09:42:14 +0000
(09:42 +0000)
committer
Eric Wong
<normalperson@yhbt.net>
Mon, 21 Apr 2014 09:42:14 +0000
(09:42 +0000)
cronjobs should be quiet, since cron default to emailing the user
on output.
ssoma
patch
|
blob
|
history
diff --git
a/ssoma
b/ssoma
index dabd511d9c9bd2ecc456a8e3eebb0dc2b53bc6df..ef99a008751a1cb7fbc0a1a401158a53c2471e77 100755
(executable)
--- 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) {