Hi, I need to use cron to run some job. I know that cron only set up very basic environment. I'd like to duplicate my login environment. But some environment variables are still not seen when I set the following crontab entry. Does anybody know how to correctly set up the login enviroment? (The manual describes what files are sourced, but I don't want to manually source these files. I'm looking for a simpler way.)
* * * * * /bin/bash -i -l -c '/path/programtorun.sh > /tmp/my.log' -- Regards, Peng