#!/bin/bash
ip=192.168.0.1
username=admin
password=password
url="http://${ip}/cgi-bin/web2timehist.cgi?unit=0&chan=0&ip=100&frame=82"
x=$(curl -s --cookie "username=${username}; password=${password}" $url|sed -e 's/<[/]tr>/ \n/g'|sed -e 's/<[^>]*>/ /g'|sed '/^$/d')&&x=${x#*GMT\"}&&x=${x%<!--*}&&IFS=xxxxxxx&&echo ${x}|while read a;do [ ${#a} -gt 18 ]&&echo $a|tr -s " ";done;
沒有留言:
張貼留言