diff --git a/launch.py b/launch.py index 371c703ab7325280c0817701de9fc85af8ec3ef0..7ffe5907e1448f07512134847097529e7ca29b94 100755 --- a/launch.py +++ b/launch.py @@ -106,7 +106,9 @@ def write_crontab(): fpath = os.path.join(cwd, 'launch_crontab.sh') # TODO: parse other relevant arguments as well: --re # but not the free cpu's etc, they are read from the config file - crontab = '*/5 * * * * cd "%s"; %s %s --crontab' % (cwd, python, launch) + # nr of cpu's is set to 1, but will over written by config file + rpl = (cwd, python, launch) + crontab = '*/5 * * * * cd "%s"; %s %s --crontab -n 1;\n' % rpl f = open(fpath, 'w') f.write(crontab) f.flush()