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.

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Settig some environment variables from within python.
Date 2016-03-23 13:46 -0400
Message-ID <mailman.61.1458755210.2244.python-list@python.org> (permalink)
References <nctnu3$rsd$1@aspen.stu.neva.ru>

Show all headers | 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