From: Hadmut Danisch Date: 2010-05-24T01:29:00+09:00 Subject: [ruby-core:30380] execve still not possible? Hi, 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') I get ArgumentError: string contains null byte from (irb):1:in `syscall' from (irb):1 from :0 which seems to be a rather old problem, has already been discussed 2008 under http://www.ruby-forum.com/topic/160121 However, the problem still exist with 1.8 and 1.9 Is there any way to call execve from ruby (i.e. execute a program with a first parameter different from its path)? regards Hadmut