Re: [SHR-testing] where to get the 'nice' binary

2009-04-10 Thread Joachim Ott
2009/4/8 Konstantin chaosspaw...@gmx.net:
 Hi there,

 I hope someone can help me with that. I'd love to raise the nice-value of 
 apps I
 start (for example mplayer), but I can't find the nice binary on SHR testing.
 Any hints as to where to get it? In Ubuntu/Debian, it's in the package
 coreutils, if that helps, but I didn't find a similar package in the SHR
 repositories...

Start the mplayer thru a shellscript, like this:

#!/bin/sh

renice -20 $$
exec mplayer

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [SHR-testing] where to get the 'nice' binary

2009-04-10 Thread Konstantin
Joachim Ott wrote:
 2009/4/8 Konstantin chaosspaw...@gmx.net:
 Hi there,

 I hope someone can help me with that. I'd love to raise the nice-value of 
 apps I
 start (for example mplayer), but I can't find the nice binary on SHR testing.
 Any hints as to where to get it? In Ubuntu/Debian, it's in the package
 coreutils, if that helps, but I didn't find a similar package in the SHR
 repositories...
 
 Start the mplayer thru a shellscript, like this:
 
 #!/bin/sh
 
 renice -20 $$
 exec mplayer

Great, just what I was looking for! Thanks a lot! :)

P.S.: I've put $1 after exec mplayer, because that way I can give a file to
play as an argument. Works like a charm :D

Regards,
Konstantin

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [SHR-testing] where to get the 'nice' binary

2009-04-10 Thread Christophe Badoit
Konstantin a écrit :

 P.S.: I've put $1 after exec mplayer, because that way I can give a file to
 play as an argument. Works like a charm :D

Give $@ instead of $1 so you can have file(s) and argument(s) !

-- 
Christophe Badoit


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [SHR-testing] where to get the 'nice' binary

2009-04-09 Thread Stefan Monnier
 I hope someone can help me with that. I'd love to raise the nice-value
 of apps I start (for example mplayer), but I can't find the nice
 binary on SHR testing.  Any hints as to where to get it? In
 Ubuntu/Debian, it's in the package coreutils, if that helps, but
 I didn't find a similar package in the SHR repositories...  Any help
 is greatly appreciated :)

In such distributions, I'd expect it to be built into `busybox'.
So try to run `busybox' and see if `nice' is listed as one of the
commands that are built into it.  If yes, then busybox nice -N cmd
should do the trick.  If not, you'll either have to get another build of
busybox that includes `nice', or install Debian's `nice' binary (or
build your own).  Another option is to use start-stop-daemon which
accepts a -N argument.


Stefan


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [SHR-testing] where to get the 'nice' binary

2009-04-09 Thread Konstantin
Stefan Monnier wrote:
 I hope someone can help me with that. I'd love to raise the nice-value
 of apps I start (for example mplayer), but I can't find the nice
 binary on SHR testing.  Any hints as to where to get it? In
 Ubuntu/Debian, it's in the package coreutils, if that helps, but
 I didn't find a similar package in the SHR repositories...  Any help
 is greatly appreciated :)
 
 In such distributions, I'd expect it to be built into `busybox'.
 So try to run `busybox' and see if `nice' is listed as one of the
 commands that are built into it.  If yes, then busybox nice -N cmd
 should do the trick.  If not, you'll either have to get another build of
 busybox that includes `nice', or install Debian's `nice' binary (or
 build your own).  Another option is to use start-stop-daemon which
 accepts a -N argument.

Interesting - busybox in shr testing and unstable (upgraded today)
doesn't seem to have builtin 'nice' functionality, but contains 'renice' - 
weird ;)
Anyway, I'll go looking for a source tarball of 'nice' now, as I really would
like to avoid building busybox... the last time I fiddled with core system
utilities on my fr, it broke GSM on my SHR testing - and that was just by
installing packages from the official repository ;)

Anyway, thanks for your help so far :)

 Stefan

Regards,
Konstantin

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


[SHR-testing] where to get the 'nice' binary

2009-04-08 Thread Konstantin
Hi there,

I hope someone can help me with that. I'd love to raise the nice-value of apps I
start (for example mplayer), but I can't find the nice binary on SHR testing.
Any hints as to where to get it? In Ubuntu/Debian, it's in the package
coreutils, if that helps, but I didn't find a similar package in the SHR
repositories...
Any help is greatly appreciated :)

Regards,
Konstantin

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support