Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 228043 Details for
Bug 315625
app-text/multitail-5.2.6 provides incomplete output
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A script calling watch and multitail
printLinesFunction_with_multitail.sh (text/plain), 1.24 KB, created by
Juergen Rose
on 2010-04-16 16:22:06 UTC
(
hide
)
Description:
A script calling watch and multitail
Filename:
MIME Type:
Creator:
Juergen Rose
Created:
2010-04-16 16:22:06 UTC
Size:
1.24 KB
patch
obsolete
>#!/bin/bash > >Start_time=`date +"%s"` >script=${0##*/} >Script_PID=$$ > >function printNlines_with_seconds() { > n=$1 > if [ -z "$n" ]; then > n=6 > fi > if [ $n -lt 6 ]; then > n=6 > fi > if [ -f "${script}_$Script_PID.out" ]; then > read j < "${script}_$Script_PID.out" > else > j=0 > fi > echo "$[j+1]" > "${script}_$Script_PID.out" > > printf "#--- 1 -- \$$=%5d PPID=%5d ---# This script should print $n (>6) lines\n" $$ $PPID > printf "# 2 Script_PID=%5d #\n" $Script_PID > printf "# 3 kill with pressing %-4s #\n" "'$2'" > for ((i=4;i<$[n-2];i++)) { > printf "# %2d #\n" $i > } > printf "#=== %2d =============================#\n" $[n-2] > Time=`date +"%s"` > seconds=$[Time-$Start_time] > printf " %2d j=%4d seconds=%4d #\n" $[n-1] $j $seconds > printf "#=== %2d =============================#\n" $n >} > >export Start_time script Script_PID >export -f printNlines_with_seconds > >cmd="printNlines_with_seconds" > >for ((n=10;n<16;n++)) { > echo "cmd=$cmd; before execute 'watch \"$cmd $n ^C\"'; kill with '^C'"; sleep 3 > watch "$cmd $n ^C" > echo "cmd=$cmd; before execute 'multitail -rc 2 -wh $[n+1] -l \"$cmd $n q\"'; kill with 'q'"; sleep 3 > multitail -rc 2 -wh $[n+1] -l "$cmd $n q" >} > >rm ${script}_$Script_PID.out
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 315625
: 228043 |
259226
|
259227
|
259228
|
259229