Util-Linux package development
 help / color / mirror / Atom feed
* chrt: inconsistency in --help
@ 2015-06-09  8:37 Martin Steigerwald
  2015-06-09  9:24 ` Karel Zak
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Steigerwald @ 2015-06-09  8:37 UTC (permalink / raw)
  To: util-linux

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-15 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-09  8:37 chrt: inconsistency in --help Martin Steigerwald
2015-06-09  9:24 ` Karel Zak
2015-06-11  9:03   ` Benno Schulenberg
2015-06-15 13:09     ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox