<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: get a line in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061712#M94256</link>
    <description>Please clarify your requirements because your post is somewhat confusing.&lt;BR /&gt;&lt;BR /&gt;~thanks</description>
    <pubDate>Mon, 06 Aug 2007 16:38:35 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-08-06T16:38:35Z</dc:date>
    <item>
      <title>get a line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061710#M94254</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a file that logs all sql statements in an informix DB.&lt;BR /&gt;&lt;BR /&gt;I would like to print out certain information between each stanza:&lt;BR /&gt;&lt;BR /&gt;=============================== 06:05:00 =======================================&lt;BR /&gt;The server did not respond within 5 seconds.  Timing out.&lt;BR /&gt;The server did not respond within 5 seconds.  Timing out.&lt;BR /&gt;&lt;BR /&gt;Informix Dynamic Server 2000 Version 9.21.UC5     -- On-Line (Prim) -- Up 3 days 05:59:03 -- 2027776 Kbytes&lt;BR /&gt;&lt;BR /&gt;session                                      #RSAM    total      used      &lt;BR /&gt;id       user     tty      pid      hostname threads  memory     memory    &lt;BR /&gt;163348   informix -        0        -        0        12288      7840      &lt;BR /&gt;&lt;BR /&gt;Memory pools    count 1&lt;BR /&gt;name         class addr     totalsize freesize #allocfrag #freefrag &lt;BR /&gt;163348       V     942e7020 12288     4448     13         2         &lt;BR /&gt;&lt;BR /&gt;name           free       used           name           free       used      &lt;BR /&gt;overhead       0          1648           scb            0          96        &lt;BR /&gt;filetable      0          40             ostcb          0          40        &lt;BR /&gt;sqscb          0          5928           sql            0          40        &lt;BR /&gt;fragman        0          48             &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;session                                      #RSAM    total      used      &lt;BR /&gt;id       user     tty      pid      hostname threads  memory     memory    &lt;BR /&gt;163621   p4uread  HOD01702 876      HOD01702 1        118784     115888    &lt;BR /&gt;&lt;BR /&gt;tid      name     rstcb    flags    curstk   status&lt;BR /&gt;180109   sqlexec  ae75f508 B--PR--  4696     ae75f508 sleeping(Forever)&lt;BR /&gt;&lt;BR /&gt;Memory pools    count 1&lt;BR /&gt;name         class addr     totalsize freesize #allocfrag #freefrag &lt;BR /&gt;163621       V     946b6020 118784    2896     349        5         &lt;BR /&gt;&lt;BR /&gt;name           free       used           name           free       used      &lt;BR /&gt;overhead       0          1648           scb            0          96        &lt;BR /&gt;opentable      0          19864          filetable      0          2664      &lt;BR /&gt;misc           0          136            log            0          4200      &lt;BR /&gt;temprec        0          3144           keys           0          208       &lt;BR /&gt;ralloc         0          46024          gentcb         0          1328      &lt;BR /&gt;ostcb          0          2728           sqscb          0          12416     &lt;BR /&gt;sql            0          40             rdahead        0          832       &lt;BR /&gt;hashfiletab    0          280            osenv          0          688       &lt;BR /&gt;buft_buffer    0          4184           sqtcb          0          3584      &lt;BR /&gt;fragman        0          11744          sapi           0          40        &lt;BR /&gt;&lt;BR /&gt;Sess  SQL            Current            Iso Lock       SQL  ISAM F.E.&lt;BR /&gt;Id    Stmt type      Database           Lvl Mode       ERR  ERR  Vers&lt;BR /&gt;163621 SELECT         data               CR  Not Wait   0    0    9.03&lt;BR /&gt;&lt;BR /&gt;Current statement name : sql_cur7&lt;BR /&gt;&lt;BR /&gt;Current SQL statement :&lt;BR /&gt;  SELECT informix.opheadm.order_no ,informix.opheadm.customer&lt;BR /&gt;    ,informix.opheadm.address1 ,informix.opheadm.address2&lt;BR /&gt;    ,informix.opheadm.address3 ,informix.opheadm.address4&lt;BR /&gt;    ,informix.opheadm.address5 ,informix.opheadm.date_entered&lt;BR /&gt;    ,informix.opheadm.transaction_anals2 ,informix.opdetm.product&lt;BR /&gt;    ,informix.opdetm.long_description ,informix.opdetm.nominal_category&lt;BR /&gt;    ,informix.opdetm.value ,informix.opdetm.vat_amount&lt;BR /&gt;    ,informix.quotes.quo_salutation ,informix.quotes.quo_forename&lt;BR /&gt;    ,informix.quotes.quo_surname ,informix.quotes.quo_old_address1&lt;BR /&gt;    ,informix.quotes.quo_bank_account ,informix.quotes.quo_sort_code&lt;BR /&gt;    ,informix.quotes.quo_bank_name  FROM&lt;BR /&gt;    informix.quotes,informix.opheadm,informix.opdetm WHERE&lt;BR /&gt;    ((((informix.opheadm.order_no = informix.quotes.quo_order_no ) AND&lt;BR /&gt;    (informix.opheadm.date_entered BETWEEN  ? AND  ? ) ) AND&lt;BR /&gt;    (informix.opheadm.order_no = informix.opdetm.order_no ) ) AND&lt;BR /&gt;    (NOT((informix.opdetm.value = 0 ) ) AND (informix.opdetm.line_type IN ('P'&lt;BR /&gt;    ,'S' ) ) ) ) &lt;BR /&gt;&lt;BR /&gt;Last parsed SQL statement :&lt;BR /&gt;  SELECT informix.opheadm.order_no ,informix.opheadm.customer&lt;BR /&gt;    ,informix.opheadm.address1 ,informix.opheadm.address2&lt;BR /&gt;    ,informix.opheadm.address3 ,informix.opheadm.address4&lt;BR /&gt;    ,informix.opheadm.address5 ,informix.opheadm.date_entered&lt;BR /&gt;    ,informix.opheadm.transaction_anals2 ,informix.opdetm.product&lt;BR /&gt;    ,informix.opdetm.long_description ,informix.opdetm.nominal_category&lt;BR /&gt;    ,informix.opdetm.value ,informix.opdetm.vat_amount&lt;BR /&gt;    ,informix.quotes.quo_salutation ,informix.quotes.quo_forename&lt;BR /&gt;    ,informix.quotes.quo_surname ,informix.quotes.quo_old_address1&lt;BR /&gt;    ,informix.quotes.quo_bank_account ,informix.quotes.quo_sort_code&lt;BR /&gt;    ,informix.quotes.quo_bank_name  FROM&lt;BR /&gt;    informix.quotes,informix.opheadm,informix.opdetm WHERE&lt;BR /&gt;    ((((informix.opheadm.order_no = informix.quotes.quo_order_no ) AND&lt;BR /&gt;    (informix.opheadm.date_entered BETWEEN  ? AND  ? ) ) AND&lt;BR /&gt;    (informix.opheadm.order_no = informix.opdetm.order_no ) ) AND&lt;BR /&gt;    (NOT((informix.opdetm.value = 0 ) ) AND (informix.opdetm.line_type IN ('P'&lt;BR /&gt;    ,'S' ) ) ) ) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------------------------------------------------&lt;BR /&gt;=============================== 06:10:00 =======================================&lt;BR /&gt;&lt;BR /&gt;etc etc&lt;BR /&gt;&lt;BR /&gt;I am looking to print the time the information was collected and then information from between the below stanza for each occurrance of p4uread and the sql statement being run, not to bothered about the print format:&lt;BR /&gt;&lt;BR /&gt;time user sql:&lt;BR /&gt;&lt;BR /&gt;&lt;STATEMENT&gt;&lt;BR /&gt;&lt;BR /&gt;once again any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STATEMENT&gt;</description>
      <pubDate>Mon, 06 Aug 2007 10:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061710#M94254</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-08-06T10:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: get a line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061711#M94255</link>
      <description>Hi Chris:&lt;BR /&gt;&lt;BR /&gt;See if this fits your needs:&lt;BR /&gt;&lt;BR /&gt;# sed -ne '/^===/p' -e '/p4uread/,/^Last parsed/p' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 06 Aug 2007 11:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061711#M94255</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-08-06T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: get a line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061712#M94256</link>
      <description>Please clarify your requirements because your post is somewhat confusing.&lt;BR /&gt;&lt;BR /&gt;~thanks</description>
      <pubDate>Mon, 06 Aug 2007 16:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061712#M94256</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-06T16:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: get a line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061713#M94257</link>
      <description>Thanks for the code,&lt;BR /&gt;&lt;BR /&gt;I have adapted and used with awk.</description>
      <pubDate>Tue, 07 Aug 2007 02:55:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-a-line/m-p/5061713#M94257</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-08-07T02:55:41Z</dc:date>
    </item>
  </channel>
</rss>

