mIRC Home    About    Download    Register    News    Help

Print Thread
#170219 05/02/07 10:59 AM
Joined: May 2003
Posts: 41
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2003
Posts: 41
Hi all,

I currently utilise an Auto update script, which checks my HOST and downloads \ bwrites the newer .mrc file and reloads accordingly.

What i cant prevent, it the writing of this into the NEWER file
Code:
HTTP/1.1 200 OK
Age: 2012
Accept-Ranges: bytes
Date: Mon, 05 Feb 2007 09:08:07 GMT
Content-Length: 25600
Content-Type: application/octet-stream
Server: HTTP Daemon
Last-Modified: Mon, 05 Feb 2007 00:47:03 GMT
ETag: "b9c1f3-6400-8276fc0"



Any ideas how to discard everything up to the first empty line and then write anything that follows.


Any help would be appreciated.

Thanks


P.S I have not pasted all my code in case it is a common occurance.

Last edited by Damsulegna; 05/02/07 11:40 AM.

If At First You Don't Succeed, Ask Someone For Help......
Damsulegna #170220 05/02/07 12:17 PM
Joined: May 2003
Posts: 41
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2003
Posts: 41
Sorry, found the resolve


Code:
on *:sockread:UpDaMsGeTdAmS:{
  if ($sockerr) return
  if (!$sock($sockname).mark) {
    var %tmp
    sockread %tmp
    if (* !iswm %tmp) sockmark $sockname 1
  }
  else {
    sockread &Data
    while ($sockbr) {
      .bwrite temp/ $+ %UpDaMs_b -1 $ifmatch &Data
      sockread &Data
    }
  }
}

!$sock($sockname).mark was the key, in depth searching found answer


thanks anyway.


If At First You Don't Succeed, Ask Someone For Help......

Link Copied to Clipboard