Sir, send me some awk file to calculate Jitter.......
[root@exa02db01 ~]# ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== *127.127.1.0 .LOCL. 10 l 7 64 377 0.000 0.000 0.001 192.168.1.82 .INIT. 16 u - 16 0 0.000 0.000 0.000 ------------------------- Node-2: --------------------- [root@exa02db02 ~]# ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== 127.127.1.0 .LOCL. 10 l 42 64 377 0.000 0.000 0.001 *192.168.1.82 66.228.59.187 3 u 6 16 377 3.145 5.747 3.683
spawn scp $usr@$host:$flnm . expect { -re "(.*)assword:" { send -s "$pswd\r" } }
spawn scp file.txt user@host:file.txt expect { -re "(.*)assword:" { send -s "password\r" } "you sure you want to continue connecting" { send -s "yes\r" exp_continue } }
#!/bin/ksh filename="/apps/log/file.txt" if [ -f "${filename}" ] then createTime=`ls -lad "${filename}" | awk '{print $8}'` echo "$createTime" currentTime=`date '+%M'` echo "$currentTime" DIFF=$(( $currentTime - $createTime )) echo "$DIFF" else exit 1 fi
IFS=$'\n' var=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\".*/\2/g' 1797.csv) # filenames of all files var2=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\"\(.*\)\"$/\3/g' 1797.csv) # contents of all files for j in $var; do #Here I do not know how to use $var2 done