Answers for "bash add new line to crontab"

1

bash add new line to crontab

#!/bin/bash

line="* * * * * /path/to/command"
(crontab -u userhere -l; echo "$line" ) | crontab -u userhere -
Posted by: Guest on November-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language