[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only
From: |
Will McCown |
Subject: |
Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only |
Date: |
Tue, 06 May 2014 14:42:01 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 5/6/2014 12:58 PM, Grant wrote:
>
> Should I be able to test that with 'env -i bash -norc'? I've added
> all of the variables I get from env when the command works to the 'env
> -i bash -norc' environment but the command still doesn't work.
> Running 'env' in the 'env -i bash -norc' environment doesn't list the
> added variables but echo does return their values.
>
In the bash shell you need to use
export NAME=value
for the values to get added to the environment. Simply typing
NAME=value
in bash creates shell variables not environment variables.
But that is the syntax of the line you will want to add to crontab.
And yes I know it is confusing having similar syntax do
different things depending one where you are.
--
Will McCown, Rolling Hills Estates, CA
address@hidden
Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only, edgar . soldin, 2014/05/06