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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s