<?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: script help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066137#M139693</link>
    <description>Unfortunately, no.  The database vendor, in our case NxTrend, supplied the few starup/shutdown scripts and I haven't needed much else.&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Sep 2003 13:13:20 GMT</pubDate>
    <dc:creator>Fred Martin_1</dc:creator>
    <dc:date>2003-09-09T13:13:20Z</dc:date>
    <item>
      <title>script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066133#M139689</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I was looking to create a script that would check for idle users for one of our sites, which I have: who -u|grep 10.2|sort  -k6 .&lt;BR /&gt;&lt;BR /&gt;However I wanted to use the output from the above command/script to query our db logs to see if they are indeed still logged into the database or not.  There are too many users that do not logoff of the application and leave their sessions idle for hours, thus consuming a db licence.  &lt;BR /&gt;&lt;BR /&gt;There is no safe way to bump them off within the O/S, so I wanted to setup a script, that would look for idle users &amp;gt; 1 hour, then look in our /db1/data1.lg or /db1/data2.lg and then send them an email suggesting they log off.&lt;BR /&gt;&lt;BR /&gt;The real masterpiece would be to write the offending user in a offender.log file in a directory somewhere.&lt;BR /&gt;&lt;BR /&gt;Your help/ideas are appreicated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Sep 2003 17:17:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066133#M139689</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2003-09-08T17:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066134#M139690</link>
      <description>Sorry, when querying the db logs, if the last entry in the log file for them says login (just as in this example)&lt;BR /&gt;12:19:30 Usr     5: Login by root on /dev/pts/tb. (452)&lt;BR /&gt;&lt;BR /&gt;Then, we want to send them an email and write their userid with date/time in a log file.&lt;BR /&gt;&lt;BR /&gt;Nickd</description>
      <pubDate>Mon, 08 Sep 2003 17:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066134#M139690</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2003-09-08T17:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066135#M139691</link>
      <description>Is this a Progress databaase by chance?  Just guessing, from the name of the log file.&lt;BR /&gt;&lt;BR /&gt;If so, this command will tell you if a user is currently connected to the database:&lt;BR /&gt;&lt;BR /&gt;$DLC/bin/proshut ${DBNAME} -C list&lt;BR /&gt;&lt;BR /&gt;You'll need to grep for the specific user.&lt;BR /&gt;&lt;BR /&gt;Again assuming Progress, you could get a list of Progress processes:&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep _progres&lt;BR /&gt;&lt;BR /&gt;Cull from that the ones that have an idle time greater than your limit.&lt;BR /&gt;&lt;BR /&gt;Then, using the Progress command above, find out if they are really connected to the DB.&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Sep 2003 11:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066135#M139691</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2003-09-09T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066136#M139692</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;Indeed a progress environment.&lt;BR /&gt;&lt;BR /&gt;I will try it and let you know.&lt;BR /&gt;&lt;BR /&gt;Do you have any other Progress scripts that you might be willing to share?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 09 Sep 2003 11:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066136#M139692</guid>
      <dc:creator>Nick D'Angelo</dc:creator>
      <dc:date>2003-09-09T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066137#M139693</link>
      <description>Unfortunately, no.  The database vendor, in our case NxTrend, supplied the few starup/shutdown scripts and I haven't needed much else.&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Sep 2003 13:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3066137#M139693</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2003-09-09T13:13:20Z</dc:date>
    </item>
  </channel>
</rss>

