Add Cron job through echo

Would it be possible to add a Cron job through echo?

Do you mean the bash function used to write to the standard output of the terminal?

I’m not at my computer at the minute but I’ve used something like this to append to the crontab in a script:

echo "$(crontab -l ; echo  '0 23 * * * /home/test/')" | crontab -
1 Like

Yes, i have an script that i run after installing Manjaro to automate things, i would like to use echo to write to crontab