I would like to change the name of the ruby process that gets displayed in the linux/unix top command. I have tried the
$0='miname'
approach but it only works with the ps command and in top the process keeps getting displayed as ‘ruby’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Dave Thomas had an interesting post on doing this in rails. There’s nothing rails specific about the actual process name change code. He uses the
$0='name'approach. When I followed his steps the name was changed inpsandtop.In the post he suggests using the
ckeyboard command if your version of top doesn’t show the short version of the command by default.