Linux - cron job

12 Feb 26

$export EDITOR="code --wait"
$crontab -e
without "code --wait" crontab will open in code in a tmp folder and not get correctly saved

example run the file 8am every day
0 8 * * * ~/octopus_spike_warn.sh
2>&1 means redirect stderr to stdout, so both will be logged in the same file

view cron jobs
$crontab -l