[Wolves] Another python question, running commands with variables as arguments.

David Goodwin david at codepoets.co.uk
Wed Aug 17 17:51:41 UTC 2011


Perhaps obvious but have the vars been exported ? 

os.getenviron() springs to mind but my spelling is probably wrong and I'm no python expert 

David 


On 17 Aug 2011, at 12:56, Simon Burke <simonb at fatsportsman.eu> wrote:

> I would of thought it would be a straight forward thing to do, but I'm
> really struggling here.
> 
> All I want to do is run a command, but arguments are stored in variables.
> 
> This is where Im struggling.
> 
> I have been using subprocess.Popen to run commands with little
> problem, but as soon as I want to get variables involved it all falls
> to pieces.
> My understanding is that I need to possibly use
> subprocess.Popen,communicate but I cant find a clear example or doc to
> detail how I am supposed to do this.
> 
> Can someone help or point me in the right direction?
> 
> Regards,
> Simon.
> 
> _______________________________________________
> Wolves LUG mailing list
> Homepage: http://www.wolveslug.org.uk/
> Mailing list: Wolves at mailman.lug.org.uk
> Mailing list home: https://mailman.lug.org.uk/mailman/listinfo/wolves



More information about the Wolves mailing list