All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [patch] xeno-test: replace 'head -3' with 'head -n 3'
@ 2006-04-13 15:05 Jim Cromie
  2006-04-16 10:40 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2006-04-13 15:05 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]


heres an untested (still, low risk) patch for xeno-test
which corrects an obsolete usage of head.


noted by Tobias Marschall on xeno-help.

[-- Attachment #2: patch-head-n --]
[-- Type: text/plain, Size: 412 bytes --]

Index: scripts/xeno-test.in
===================================================================
--- scripts/xeno-test.in	(revision 924)
+++ scripts/xeno-test.in	(working copy)
@@ -90,7 +90,7 @@
     loudly cat /proc/interrupts
     loudly cat /proc/loadavg
     [ -n "$prepost" ] && loudly $prepost
-    loudly top -bn1c | head -$(( 12 + $workload ))
+    loudly top -bn1c | head -n $(( 12 + $workload ))
 }
 
 

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

* Re: [Xenomai-core] [patch] xeno-test: replace 'head -3' with 'head -n 3'
  2006-04-13 15:05 [Xenomai-core] [patch] xeno-test: replace 'head -3' with 'head -n 3' Jim Cromie
@ 2006-04-16 10:40 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-04-16 10:40 UTC (permalink / raw)
  To: Jim Cromie; +Cc: xenomai

Jim Cromie wrote:
> 
> heres an untested (still, low risk) patch for xeno-test
> which corrects an obsolete usage of head.
> 
> 

Applied, thanks.

> noted by Tobias Marschall on xeno-help.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: scripts/xeno-test.in
> ===================================================================
> --- scripts/xeno-test.in	(revision 924)
> +++ scripts/xeno-test.in	(working copy)
> @@ -90,7 +90,7 @@
>      loudly cat /proc/interrupts
>      loudly cat /proc/loadavg
>      [ -n "$prepost" ] && loudly $prepost
> -    loudly top -bn1c | head -$(( 12 + $workload ))
> +    loudly top -bn1c | head -n $(( 12 + $workload ))
>  }
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core


-- 

Philippe.


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

end of thread, other threads:[~2006-04-16 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-13 15:05 [Xenomai-core] [patch] xeno-test: replace 'head -3' with 'head -n 3' Jim Cromie
2006-04-16 10:40 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.