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

Re: Environment Variables available from Crontab

On Sun, May 21, 2006 at 03:42:29PM -0500, Ron Johnson wrote:
>Hash: SHA1
>Eduardo Aldaz wrote:
>> Dear All
>> My crontab calls a script that I'd like to be able to read an
>> environmental variable that I've created.
>> My question is , where can I create/initialize this environment variable
>> so that it is accesible to this script? Each time this script is called
>> by crontab it would change the environment variable, as it is some sort
>> of counter...
>Unix lets you see your parent's environment variables, but not
>modify them so that it affects the parent's copy of the variable.
>Of course, OpenVMS does this with ease, and I use that feature all
>the time.
>>>From what I gather /etc/profile is only used by login scripts? So it
>> would be of no use?

Check out /etc/environment. That's where dpkg-reconfigure locales should
end up putting its stuff, I think.


Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus@therning.org             Jabber: magnus.therning@gmail.com

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.


Attachment: pgpeLMbrV3Q47.pgp
Description: PGP signature

Reply to: