From: Michael Linfield Date: 2009-03-16T08:02:07+09:00 Subject: Re: execle ruby process from C ? Zouplaz wrote: > Hello, I'm playing with a small http server written in C & Ruby CGI and > there is something wrong > > if(execle("/usr/bin/ruby", "/usr/bin/ruby" " test.rb", NULL, NULL) == > -1) > { > wlog("error execle"); > exit(EXIT_FAILURE); > } > What is the difference with ruby executable ? I may be mistaken because 1. I don't have your full piece of code or 2. I'm not very up-to-date with C. But simply running ../ruby test.rb and test.rb only has print "hello" in it, the output would be to your shell/terminal...not your http server o_O Correct me if I'm wrong and I'll try to help the best I can. Post the code to your http server and that would probably help alot. Regards, - Mac -- Posted via http://www.ruby-forum.com/.