cron – always tricky to remember

If you want to knowhow to get cron to inherit your login env then this worked for me….

30 23 * * *    ( . $HOME/.profile; /home/oracle/migtools/export_database > export_log )

Note the . fires the shell and the $HOME/.profile makes sure it fires in the correct location