From: Tyler Knappe Date: 2009-06-23T23:38:54+09:00 Subject: Re: Capturing System Call Return Values? > > Why would that mean that the statement above is not correct? > Revisiting this, here is what I am trying to do: path = "python [..path..]/test.py" print path + "\n" test = %x[python [..path..]/test.py] print test testing = %x[uptime] print testing Here is the output: python [..path..]/test.py Testing! my script 2nd line 8:20am up 181 days 20:55, 7 users, load average: 0.00, 0.00, 0.00 However, what I was expecting from the test variable was this: print "Testing! my script " print "2nd line" def returnValue(): return True returnValue() Where I was expecting to see test = True. The return value of the system call is not being capture when I call a python script, yet IS when a 'system call' is made. Anyone have any insight into this? -- Posted via http://www.ruby-forum.com/.