I got one more solution for this problem:
0 5 * * * . $HOME/.profile; /path/to/command/to/run
In this case it will pick all the environment variable defined in your $HOME/.profile
file.
Of course $HOME
is also not set, you have to replace it with the full path of your $HOME
.