From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ferrari Subject: ENV vs BASH_ENV Date: Mon, 21 Jul 2008 17:58:23 +0200 Message-ID: <200807211758.24073.fluca1978@infinito.it> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Hi all, I cannot find out the difference between defining the two variables, but I discovered after a lot that having both set up in my crontab avoids a script to run correctly. For instance if I have in my crontab: ENV=/home/luca/.profile BASH_ENV=/home/luca/.profile then a shell script seems not to execute unless its output is redirect to a file. So the line 00 10 * * * myBackup.sh does not seem to run (or starts and ends immediatly), while 00 10 * * * myBackup.sh > /tmp/backup.log works fine. If I run the backup script manually it works (it uses rsync). What's the magic around the above variables? Thanks, Luca