automated terminal push

This commit is contained in:
Your Name
2025-02-07 14:38:29 -05:00
parent 0ae71b92c2
commit 7f86daf60d

View File

@@ -14,7 +14,7 @@ create_cron_job() {
cron_line="${minute} ${hour} ${day_of_month} ${month} ${day_of_week} ${command}" cron_line="${minute} ${hour} ${day_of_month} ${month} ${day_of_week} ${command}"
# Add the cron job for the specified user. Redirects stderr to stdout. # Add the cron job for the specified user. Redirects stderr to stdout.
(crontab -u "yankee -l 2>/dev/null; echo "$cron_line") | crontab -u "$user" - (crontab -u yankee -l 2>/dev/null; echo "$cron_line") | crontab -u "$user" -
echo "Cron job added for user $user:" echo "Cron job added for user $user:"
echo "$cron_line" echo "$cron_line"