bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is the correct way to set up login environment in crontab?


From: Peng Yu
Subject: What is the correct way to set up login environment in crontab?
Date: Tue, 8 Nov 2011 21:46:37 -0600

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]