티스토리 뷰

공부

[sh] install crontab by sh

승가비 2023. 8. 27. 00:11
728x90
crontab -l | { cat; echo "0 0 0 0 0 some entry"; } | crontab -

https://stackoverflow.com/questions/878600/how-to-create-a-cron-job-using-bash-automatically-without-the-interactive-editor

 

How to create a cron job using Bash automatically without the interactive editor?

Does crontab have an argument for creating cron jobs without using the editor (crontab -e)? If so, what would be the code to create a cron job from a Bash script?

stackoverflow.com

 

728x90
댓글