Re: python/ruby question..

2008-06-19 Thread Aahz
In article <[EMAIL PROTECTED]>, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: >On 19 Giu, 18:49, [EMAIL PROTECTED] (Aahz) wrote: >> In article <[EMAIL PROTECTED]>, >> Matt Nordhoff =A0<[EMAIL PROTECTED]> wrote: >> >>>You're supposed to use the subprocess module. >> >> Really? =A0Sez who? >> >> $ pyt

RE: python/ruby question..

2008-06-19 Thread bruce
s to for now... like i said.. rather simple, as it should be. so thanks for the help/suggestions from everyone! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul McGuire Sent: Thursday, June 19, 2008 6:27 PM To: python-list@python.org Subject: Re: python/

Re: python/ruby question..

2008-06-19 Thread Paul McGuire
On Jun 18, 10:33 pm, "bruce" <[EMAIL PROTECTED]> wrote: > hi... > > can someone point me to where/how i would go about calling a ruby app from a > python app, and having the python app being able to get a returned value > from the ruby script. > I'm betting that Ruby is similar to Python in that a

Re: python/ruby question..

2008-06-19 Thread Matimus
On Jun 19, 4:00 pm, Matimus <[EMAIL PROTECTED]> wrote: > On Jun 18, 8:33 pm, "bruce" <[EMAIL PROTECTED]> wrote: > > > > > hi... > > > can someone point me to where/how i would go about calling a ruby app from a > > python app, and having the python app being able to get a returned value > > from th

Re: python/ruby question..

2008-06-19 Thread Matimus
On Jun 18, 8:33 pm, "bruce" <[EMAIL PROTECTED]> wrote: > hi... > > can someone point me to where/how i would go about calling a ruby app from a > python app, and having the python app being able to get a returned value > from the ruby script. > > something like > > test.py >  a = os.exec(testruby.r

Re: python/ruby question..

2008-06-19 Thread Mensanator
On Jun 19, 5:14 am, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Mensanator wrote: > You're supposed to use the subprocess module. Yeah, I know, but I couldn't get it to work the last time I tried it. > > In this case, something like: > > import subprocess > factor_program = ['factor!', '-d200'] >

Re: python/ruby question..

2008-06-19 Thread Mike Driscoll
On Jun 19, 11:49 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Matt Nordhoff  <[EMAIL PROTECTED]> wrote: > > > > >You're supposed to use the subprocess module. > > Really?  Sez who? > > $ python > Python 2.3.4 (#1, Feb  2 2005, 12:11:53) > [GCC 3.4.2 20041017 (Red Hat 3.4.

Re: python/ruby question..

2008-06-19 Thread Giampaolo Rodola'
On 19 Giu, 18:49, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Matt Nordhoff  <[EMAIL PROTECTED]> wrote: > > > > >You're supposed to use the subprocess module. > > Really?  Sez who? > > $ python > Python 2.3.4 (#1, Feb  2 2005, 12:11:53) > [GCC 3.4.2 20041017 (Red Hat 3.4.2-6

Re: python/ruby question..

2008-06-19 Thread Aahz
In article <[EMAIL PROTECTED]>, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > >You're supposed to use the subprocess module. Really? Sez who? $ python Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 Type "help", "copyright", "credits" or "license" for

Re: python/ruby question..

2008-06-19 Thread Michael Mabin
The commands module might help you out as well. import commands as c output = c.getoutput('testruby.rb') On Thu, Jun 19, 2008 at 5:14 AM, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Mensanator wrote: > > On Jun 18, 10:33�pm, "bruce" <[EMAIL PROTECTED]> wrote: > >> hi... > >> > >> can someone poi

Re: python/ruby question..

2008-06-19 Thread Matt Nordhoff
Mensanator wrote: > On Jun 18, 10:33�pm, "bruce" <[EMAIL PROTECTED]> wrote: >> hi... >> >> can someone point me to where/how i would go about calling a ruby app from a >> python app, and having the python app being able to get a returned value >> from the ruby script. >> >> something like >> >> tes

Re: python/ruby question..

2008-06-18 Thread Mensanator
On Jun 18, 10:33�pm, "bruce" <[EMAIL PROTECTED]> wrote: > hi... > > can someone point me to where/how i would go about calling a ruby app from a > python app, and having the python app being able to get a returned value > from the ruby script. > > something like > > test.py > �a = os.exec(testruby.