Skip to content

Instantly share code, notes, and snippets.

@eaydin
Created February 14, 2012 14:32
Show Gist options
  • Select an option

  • Save eaydin/1827106 to your computer and use it in GitHub Desktop.

Select an option

Save eaydin/1827106 to your computer and use it in GitHub Desktop.

Revisions

  1. eaydin revised this gist Feb 14, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cronadd.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/bin/bash
    command=”path-to/my_process.sh > /dev/null 2>&1
    command=”/path-to/my_process.sh > /dev/null 2>&1
    job=”*/5 * * * * $command
    cat <(grep -i -v “$command<(crontab -l)) <(echo “$job) | crontab -
  2. eaydin created this gist Feb 14, 2012.
    4 changes: 4 additions & 0 deletions cronadd.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/bash
    command=”path-to/my_process.sh > /dev/null 2>&1
    job=”*/5 * * * * $command
    cat <(grep -i -v “$command<(crontab -l)) <(echo “$job) | crontab -