SO I'm checking in after all these years away to see if anyone has a better way of doing this...
I'm building an RPM that requires adding a cron job into a user's(service account) crontab...from what I see in the manpages, this isn't possible, as the only viable option is to replace the crontab entries already there for previous scripts being run...
Either way, as an example I've found I can make it work by directly modifying the crontab file using:
Code:
echo "* * * * * /bin/ls -la ~/ >> ~/ls.log" >> /var/spool/cron/userName
I'd just like to know, is there any MAJOR issues with modifying a the crontabs like this?
This is running on a Redhat Enterprise Linux server by the way...