File: tstimes

package info (click to toggle)
trend 1.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 220 kB
  • ctags: 283
  • sloc: cpp: 1,891; perl: 110; makefile: 50; sh: 12
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'