Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Long commands (>999 characters) don't get written to crontab. #27

Open
aniketpanjwani opened this issue Mar 12, 2018 · 0 comments
Open

Comments

@aniketpanjwani
Copy link
Owner

aniketpanjwani commented Mar 12, 2018

Steps to reproduce the problem:
  1. Have a PATH variable sufficiently long so that the reset_command variable in set_block_length in ./chomper/block.py is more than 999 characters.
  2. Run chomper.
  3. Look at root crontab - reset_command will not be written to root's crontab.
Any other comments? What have you tried so far?

I was confused about why the cron jobs suddenly stopped working. It turns out this is due to my adding more things to my PATH variable. For now, I'm going to prune my PATH variable of unnecessary things, but there should be a better way of putting the normal user's PATH variable in the root user's environment.

System information

Operating system: (e.g. Linux Mint 18)

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant