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


Groups > comp.lang.python > #105562

Re: Settig some environment variables from within python.

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Settig some environment variables from within python.
Date Wed, 23 Mar 2016 13:46:38 -0400
Lines 15
Message-ID <mailman.61.1458755210.2244.python-list@python.org> (permalink)
References <nctnu3$rsd$1@aspen.stu.neva.ru>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de JalWEuaRpQLYxVvn9HnSYQHmEzOVIg45JsQKZgWThCww==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bash': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'python.': 0.11; 'jan': 0.11; 'variables': 0.15; 'invoking': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:python.': 0.16; 'wrote:': 0.16; 'all,': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'module.': 0.27; 'subject:some': 0.29; 'environment': 0.29; 'code': 0.30; 'case,': 0.34; 'should': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'subject:from': 0.39; 'submit': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'received:96': 0.63; 'within': 0.64; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host pool-96-227-207-81.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
In-Reply-To <nctnu3$rsd$1@aspen.stu.neva.ru>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:105562

Show key headers only | View raw


On 3/23/2016 5:33 AM, Hongyi Zhao wrote:
> Hi all,
>
> I want to submit a qsub job to my hpc cluster from within python.  In
> this case, I must set some environment variables specific for this qsub
> job and then invoking a bash script from within python.
>
> What python code should be used for this job?

The os module.


-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Settig some environment variables from within python. Hongyi Zhao <hongyi.zhao@gmail.com> - 2016-03-23 09:33 +0000
  Re: Settig some environment variables from within python. Terry Reedy <tjreedy@udel.edu> - 2016-03-23 13:46 -0400

csiph-web