Error in option spec long|! mytop

mytop has started to break recently on our cPanel Redhat and CentOS machines.

When you run mytop:

#mytop
Error in option spec: "long|!"

The fix for this is to edit the mytop script and comment out the line containing long|!

# nano /usr/bin/mytop

Run a search (control+w) for “long|!” and change:

"long|!" => \$config{long_nums},

to

"long|long_nums|l!" => \$config{long_nums},

Now run mytop again, and away you go!

This entry was posted in cPanel, Linux and tagged , . Bookmark the permalink.

2 Responses to Error in option spec long|! mytop

  1. Mike S says:

    actually, you can edit it to:
    “long|long_nums|l!”

    which may be more inline with what the author was trying to do.

    seems Getopt::long before 2.3.8 ignored the problem, but 2.3.8 failes.

  2. admin says:

    Hi Mike,

    Thanks for that, I will give it a go and update the post.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>