when creating a cron job that includes db credentials then hide those credentials after task created
when creating a cron job that includes db credentials then hide those credentials after task created
1
vote

It is bad practice to pass DB credentials in cron. Every sys.user can see your DB credentials when task is running.
You shall wrap DB credentials in a file (script) run script from cron.