From: Nobuyoshi Nakada Date: 2009-03-16T12:49:19+09:00 Subject: Re: execle ruby process from C ? Hi, At Mon, 16 Mar 2009 04:32:42 +0900, Zouplaz wrote in [ruby-talk:331208]: > if(execle("/usr/bin/ruby", "/usr/bin/ruby" " test.rb", NULL, NULL) == -1) The second string is concatenated at compile time into "/usr/bin/ruby test.rb", so you execute ruby with only that one argument, which is counted as the program name. Therefore ruby waits script from stdin. -- Nobu Nakada