From: Nobuyoshi Nakada Date: 2010-05-24T08:07:15+09:00 Subject: [ruby-core:30385] Re: execve still not possible? Hi, At Mon, 24 May 2010 01:29:00 +0900, Hadmut Danisch wrote in [ruby-core:30380]: > I just tried to call an execve system call from ruby (need to exec one > of these silly cups printer programs that expect ARGV0 to be different > from their path), but when doing something like > > syscall 11 , '/bin/true' , ["true",0].pack('pi') , ['X=1', 0].pack('pi') system({"X"=>"1"}, %w[/bin/true true]) # only in 1.9: > Is there any way to call execve from ruby (i.e. execute a program with > a first parameter different from its path)? system(%w[/bin/true true]) has been possible since very early versions, 1.4 at least. -- Nobu Nakada