From: Brian Candler Date: 2009-12-12T21:58:02+09:00 Subject: Re: Is it possible to force a Ruby program to run as a proc name different than "ruby"? I単aki Baz Castillo wrote: > So, is there some way to force the process to appear as "rb_program" in > /proc/PID/status? Have you tried $0 = 'rb_program' ? You may find there's a problem if your program name is longer than some hard-coded limit. There is a workaround at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/336743 At the top of your program put: $progname = $0 alias $PROGRAM_NAME $0 alias $0 $progname trace_var(:$0) {|val| $PROGRAM_NAME = val} # update for ps -- Posted via http://www.ruby-forum.com/.