I am trying to automate crontab addition in Mac Catalina 10.15.5 via command:
echo -e "* * * * * \run.sh"|crontab -
this command replicates crontab -e command and adds the required crontab in the system.
But it asks for permission which is not removable via automation.
a. Sudo command requires user to enter password, which is again not possible to be automated.
b. Tried creating a file and then adding it to crontab via crontab filepath, but that also requires above elevation.

