Skip to content

Instantly share code, notes, and snippets.

View danog's full-sized avatar
🇺🇦
#StandWithUkraine

Daniil Gentili danog

🇺🇦
#StandWithUkraine
View GitHub Profile
@danog
danog / crontab.sh
Last active August 29, 2015 14:18
Edit crontab in a script
#!/bin/bash
# Script to edit crontab by Daniil Gentili
echo "Editing crontab..."; echo "$(crontab -l)
$*" | crontab - && echo "Crontab edited successfully." || echo "Couldn't edit crontab."