Jump to content

dshadow1

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Posts posted by dshadow1

  1. sggrep -r "BulletinDatastore/Locations/Location[ LocationID = '^(559|968|976|983|988|996|1006|1008|329|

    1016|1019|1023|1030|1032|1035|1040|1043|1049|1066|1068|1071|1086|1092|1136|1138|1141|1158|1161|1165|

    1168|1171|1173|1219|122

    1|1257|1260|1263|1273|1274|1276|1278|1295|1297|1300|1313|1317|1323|1330|1340|1343|1347|1350|1400|140

    7|1411|1414)' ]" -- mssecure.xml | sgmltrans -r tmp\winupdl_30045_tmp_xml.transform | sed -e "s/\t*//g" -e "/^$/d" | sed -ne "/\.[Ee][Xx][Ee]/p" 1>tmp\winupdl_30045_tmp_DLPaths

    arrgh thats better :thumbup , I thought that the query was wrong somehow but now i see it was so simple.

    Keep going tzeentch your script is really useful!

  2. I think its got something to do with winupdl_7393_tmp_ProductIDs

    when you use: set WINUPDL_Product=^^Windows XP.*

    it produces the winupdl_7393_tmp_ProductIDs with these entries:

    181 (Windows XP Home Edition)

    182 (Windows XP Media Center Edition)

    183 (Windows XP Professional)

    184 (Windows XP Tablet PC Edition)

    In STEP 4: extract the location id

    sggrep -r -q "BulletinDatastore/Bulletins/Bulletin/Patches/Patch[ SeverityID = '^(!WINUPDL_SeverityIDs!

    |4)' ]" -s ".*/AffectedProduct[ ProductID = '^(!WINUPDL_ProductIDs!|184)' ]/AffectedServicePack[ ServicePackID = '^(244)' ]

    " -- mssecure.xml | sgmltrans -r tmp\winupdl_15814_tmp_xml.transform | sed -e "s/\t*//g" -e "/^$/d" 1>tmp\winupdl_15814_tmp_PatchLocationIDs

    Error: Document ends too soon

    in unnamed entity at line 1 char 1 of <stdin>

    Fatal LTSTD error (severity 1) at D:\work\LTXML\src\api\sgmlfiles.c.981: Parser detected error

    it searchs the severity ID (in my case 4) against the product id 184 and servicepackID 244, which comes up with null, so it never creates winupdl_7393_tmp_PatchLocationIDs properly because sggrep throws a parse error or something,(null string?) so when it goes to step 5

    sggrep -r "BulletinDatastore/Locations/Location[ LocationID = '^()' ]" -- mssecure.xml | sgmltrans -r tmp\winupdl_15814_tmp_xml.transform | sed -e "s/\t*//g" -e "/^$/d" | sed -ne "/\.[Ee][Xx][Ee]/p" 1>tmp\winupdl_15814_tmp_DLPaths

    location ID is null. thus it selects all location URLS from mssecure.xml.

    If you change the WINUPDL_Product variable to WINUPDL_Product=^^Windows XP Professional.*

    it creates:

    winupdl_7393_tmp_ProductIDs with this entrie:

    183 (Windows XP Professional)

    which runs through without the error, but only d/ls 1 patch..

    Any ideas>?

×
×
  • Create New...