[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: chrt: inconsistency in --help
From: Martin Steigerwald <ms () teamix ! de>
Date: 2015-06-09 8:37:46
Message-ID: 716925135.onXIMLDpa0 () merkaba
[Download RAW message or body]
Hi!
In wheezy I have (util-linux 2.20.1-5.3):
somehost:~$ chrt --help
chrt - manipulate real-time attributes of a process
Set policy:
chrt [options] <policy> <priority> {<pid> | <command> [<arg> ...]}
Get policy:
chrt [options] {<pid> | <command> [<arg> ...]}
And this works for a PID if I place "-p" with the options. Like this:
chrt -p -i 0 $$
chrt -pi 0 $$
chrt -i -p 0 $$
chrt -ip 0 $$
In Jessie I have(util-linux 2.25.2-6):
somehost:~$ chrt --help
chrt - manipulate real-time attributes of a process
Set policy:
chrt [options] [<policy>] <priority> [-p <pid> | <command> [<arg>...]]
Get policy:
chrt [options] -p <pid>
And this doesn ´t work:
chrt -i 0 -p $$
chrt: failed to execute -p: No such file or directory
Suggestion:
1) Either make chrt command parsing more flexible (preffered)
2) or or even and change set policy to
Set policy:
chrt [options] [-p] [<policy>] <priority> [<pid> | <command> [<arg>...]]
But well second option separates -p from pid. So maybe option 1 is the way
to go.
What do you think?
Ciao,
--
Martin Steigerwald | Consultant / Trainer
teamix GmbH
Südwestpark 43
90449 Nürnberg
Tel.: +49 911 30999 55 | Fax: +49 911 30999 99
mail: martin.steigerwald@teamix.de | web: http://www.teamix.de | blog: \
http://blog.teamix.de
Amtsgericht Nürnberg, HRB 18320 | Geschäftsführer: Oliver Kügow, Richard Müller
***Nicht verpassen: NSX Roadshow "Optimierte Sicherheit für das moderne \
Rechenzentrum - Sicherheit im Wandel" mit teamix, TrendMicro und VMware*** Nürnberg \
18.06. | München 02.07. | Frankfurt 16.07. | Stuttgart 23.07.
Jetzt anmelden: www.teamix.de/nsx-roadshow
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic