SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Politics : PRESIDENT GEORGE W. BUSH

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: The Street who wrote (130294)3/5/2001 11:21:18 AM
From: Thomas A Watson  Read Replies (4) of 769667
 
WOW, I'm really really really really really really really really impressed.
>>> ... dot dot dot is very very impressive. Is this an example of the street losing it.
by the way could you or one of the engineers who work for you tell me when this program will terminate.
[root@obtuse bin]# ps ax |grep test
1216 p2 S 0:10 tcsh ./modem_test.com
which is
[root@obtuse bin]# cat modem_test.com
#!/bin/tcsh
#
set starttime = `date`
@ i = 4320 #this is 6 hours of 5 seconds
set last = 255
echo `date` >modem_ip.log
set StartIp = `ifconfig eth1 |grep inet |awk '{print $2}'|awk -F: '{print $2}'
`
while ( 1 )
lynx -dump lynx -dump modem/logsdata.html >/tmp/tempfile
set current = `cat /tmp/tempfile |head -12 | tail -1 `
set keyword = ` echo $current | awk '{print $1}'`
set charcount = ` echo $keyword | wc -c `
set currentIp = `ifconfig eth1 |grep inet |awk '{print $2}'|awk -F: '{print
$2}' `

if ( $last == $keyword ) then
if ( $i == 4320 ) then
echo Program started: $starttime
echo Current ___Time: $currenttime
echo current last log record
echo $current
echo CurrentIp $currentIp StartIp $StartIp
endif
sleep 5
else
set currenttime = `date`
echo Program started: $starttime
echo Current ___Time: $currenttime
echo current last log record
echo $current
set last = $keyword
echo CurrentIp $currentIp StartIp $StartIp
endif
@ i--
if ($i == 0) then
@ i = 4320
endif

end

tom watson tosiwmee
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext