Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash add new line to crontab

#!/bin/bash

line="* * * * * /path/to/command"
(crontab -u userhere -l; echo "$line" ) | crontab -u userhere -
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #bash #add #line #crontab
ADD COMMENT
Topic
Name
7+6 =