Re: passing Python assignment value to shell

2014-05-28 Thread Satish Muthali
is is the optimal method to achieve in order to pass the assignment value to shell. I am open to suggestions or a better way of implementation/logic. Thanks again Satish On May 28, 2014, at 1:16 PM, Satish Muthali wrote: > Hello Experts, > > I am trying to extract the available user

passing Python assignment value to shell

2014-05-28 Thread Satish Muthali
Hello Experts, I am trying to extract the available userspace+swap memory and then want to feed this value as an argument to a tool that is executed in the shell. so, this is what I have so far: reecalc = [s.split() for s in os.Popen("free -ht").read().splitlines()] freecalc_total = freecalc[4]

Pass variable by reference

2014-05-05 Thread Satish Muthali
Hello experts, I have a burning question on how to pass variable by reference in Python. I understand that the data type has to be mutable. For example, here’s the issue I am running in to: I am trying to extract the PostgreSQL DB version for example: pgVer = [s.split() for s in os.popen("psq