Tuesday, 17 June 2014

mytop Error in option spec: "long|!"

[root@localhost ~]# mytop
Error in option spec: "long|!"
[root@localhost ~]# vi /usr/local/bin/mytop
[root@localhost ~]# find / -name mytop
/usr/bin/mytop
[root@localhost ~]# vi /usr/bin/mytop


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


and comment it with #




GetOptions(
    "color!"              => \$config{color},
    "user|u=s"            => \$config{user},
    "pass|password|p=s"   => \$config{pass},
    "database|db|d=s"     => \$config{db},
    "host|h=s"            => \$config{host},
    "port|P=i"            => \$config{port},
    "socket|S=s"          => \$config{socket},
    "delay|s=i"           => \$config{delay},
    "batch|batchmode|b"   => \$config{batchmode},
    "header!"             => \$config{header},
    "idle|i"              => \$config{idle},
    "resolve|r"           => \$config{resolve},
    "prompt!"             => \$config{prompt},
    #"long|!"              => \$config{long_nums},
);


save and exit, it works.


No comments:

Post a Comment