Changeset View
Changeset View
Standalone View
Standalone View
www/py-bench/files/patch-bench_utils.py
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- bench/utils.py.orig 2015-06-22 11:07:35 UTC | |||||
+++ bench/utils.py | |||||
@@ -122,7 +122,7 @@ def setup_backups(bench='.'): | |||||
def add_to_crontab(line): | |||||
current_crontab = read_crontab() | |||||
if not line in current_crontab: | |||||
- s = subprocess.Popen("crontab", stdin=subprocess.PIPE) | |||||
+ s = subprocess.Popen(["crontab", "-"], stdin=subprocess.PIPE) | |||||
s.stdin.write(current_crontab) | |||||
s.stdin.write(line + '\n') | |||||
s.stdin.close() |