From: mark@... Date: 2001-12-04T03:41:29+09:00 Subject: [ruby-talk:27360] Re: Programname in (un*x) top This may not be quite what you're looking for, but if you include the line: #!/usr/bin/ruby (or whatever the path is to ruby on your system) as the first line in your script, and give your script execute permission, then you can run the script by its name instead of "ruby scriptname" and you will see the script name in "top". Mark SKa wrote: > Dear Rubies, > I'm tired of having my ruby program being displayed under the name of > 'ruby' in the standard un*x process watcher 'top' > I know about the variable $0 and changing this leads to another > program name in 'ps' but not in 'top'. > Am I just stupid or is this really a problem for ruby? I somehow can't > believe that. I'm using Ruby 1.6.4 on a Linux box. > Thanks and Regards > Stefan Kamphausen