Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: parse an environment file

Reply
Thread Tools

Re: parse an environment file

 
 
Chris Angelico
Guest
Posts: n/a
 
      10-01-2012
On Mon, Oct 1, 2012 at 10:11 AM, Jason Friedman <(E-Mail Removed)> 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+...ment+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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: parse an environment file Jason Friedman Python 4 10-02-2012 04:16 PM
Re: parse an environment file Chris Angelico Python 2 10-01-2012 03:29 PM
Re: parse an environment file Chris Angelico Python 0 10-01-2012 02:21 PM
parse an environment file Jason Friedman Python 3 10-01-2012 10:16 AM
Re: parse an environment file Dave Angel Python 0 10-01-2012 12:58 AM



Advertisments