Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30593 > unrolled thread

Re: parse an environment file

Started byChris Angelico <rosuav@gmail.com>
First post2012-10-01 14:20 +1000
Last post2012-10-01 14:20 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: parse an environment file Chris Angelico <rosuav@gmail.com> - 2012-10-01 14:20 +1000

#30593 — Re: parse an environment file

FromChris Angelico <rosuav@gmail.com>
Date2012-10-01 14:20 +1000
SubjectRe: parse an environment file
Message-ID<mailman.1697.1349065258.27098.python-list@python.org>
On Mon, Oct 1, 2012 at 10:11 AM, Jason Friedman <jason@powerpull.net> wrote:
> $ env
>
> produces about 100 entries, most of which are provided by my .bashrc;
> cron provides only a limited number of environment variables.
>
> I want my python 3.2.2 script, called via cron, to know what those
> additional variables are.  How?

Looking into my crystal ball, I'm wondering if perhaps what you're
asking is for your cron job to have environment variables that aren't
set by cron, ones that you can see in your bash environment. This is a
common issue (usually with $PATH), and by no means Python-specific. A
quick web search will bring up some results, for instance:

http://www.google.com/search?q=cron+environment+variables
http://duckduckgo.com/?q=cron+environment+variables
http://www.bing.com/search?q=cron+environment+variables

If this isn't what you're asking about, please consider clarifying
your question :)

Chris Angelico

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web