File: tstimes

package info (click to toggle)
trend 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 256 kB
  • sloc: cpp: 1,892; perl: 110; makefile: 45; sh: 14
file content (14 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# ts execution times

if [ -z "$1" ]
then
	file=/as2d1/Logs/TS.9999.err
	host=as2
else
	file="$1"
	host="$2"
fi

ssh "$host" tail -f "'$file'" | sed -une 's/^.* time \([0-9]*\), .*$/\1/p'