View Single Post

   
  #7 (permalink)  
Old 02-25-2008, 02:22 PM
Henk Oegema
 
Posts: n/a
Default Re: which command(s) to use ?

Björn Steinbrink wrote:

> Probably the first few lines go to stderr. I'd try:
>
> k8055 -m:1 2>/dev/null | tail -1 | cut -d';' -f2


Yes Björn, this gives me the wanted output.

See:
asterisk:/home/henkoegema# k8055 -m:1 2>/dev/null | tail -1 | cut -d';' -f2
0 <--------
asterisk:/home/henkoegema#

One of my mistakes in the 'cut' command was d: i.s.o. d';'

Only one step left now:
How can I assign the output to a bash variable ?


Reply With Quote