如何在Linux上运行Ruby脚本并在TOP COMMAND而不是Ruby中显示脚本的名称?

时间:2022-06-03 04:49:38

I have a bunch of scripts that run periodically as part of Gitorious, they all show up in top under command as Ruby how do I get them to show the actual script name that is running?

我有一堆脚本作为Gitorious的一部分定期运行,它们都显示在命令的顶层,因为Ruby如何让它们显示正在运行的实际脚本名称?

1 个解决方案

#1


2  

Hit the letter 'c' while top is running, it toggles display between command name and line

在顶部运行时点击字母'c',它在命令名称和行之间切换显示

#1


2  

Hit the letter 'c' while top is running, it toggles display between command name and line

在顶部运行时点击字母'c',它在命令名称和行之间切换显示