<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366726#M346789</link>
    <description>you can add &lt;BR /&gt;echo $OLDSIZE $SIZE&lt;BR /&gt;&lt;BR /&gt;But you will have to do some arithmetic aswell if you want the differences.&lt;BR /&gt;&lt;BR /&gt;cron entry:&lt;BR /&gt;&lt;BR /&gt;0,3,6,9,12,15,18,...,54,57   *   *   *   *  /path/script &amp;gt;&amp;gt; /tmp/output&lt;BR /&gt;&lt;BR /&gt;fill in the ... with the other miutes.</description>
    <pubDate>Thu, 26 Feb 2009 00:21:12 GMT</pubDate>
    <dc:creator>Mark McDonald_2</dc:creator>
    <dc:date>2009-02-26T00:21:12Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366718#M346781</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please give me the instructions to write the script. I want to moniter the how much data is read and write per second for 3 days every hour that report is send to /tmp.</description>
      <pubDate>Wed, 25 Feb 2009 21:34:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366718#M346781</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2009-02-25T21:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366719#M346782</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;Please give me the instructions to write the script. &lt;BR /&gt;&lt;BR /&gt;Use vi?&lt;BR /&gt;start with something like&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;I want to moniter the how much data is read and write per second for 3 days every hour that report is send to /tmp.&lt;BR /&gt;&lt;BR /&gt;How much unix do you know? Have you attempted something that we can edit for you?&lt;BR /&gt;&lt;BR /&gt;have a look at &lt;BR /&gt;#man iostat   &lt;BR /&gt;Does this provide the info you need?&lt;BR /&gt;&lt;BR /&gt;This can dump stats every 3 seconds for an hour. If this is kicked off from cron on an hourly basis, outputting to a tmp file. Each hour, when the script is started it should generate a new output file name, based on date and hour number.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 25 Feb 2009 21:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366719#M346782</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-25T21:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366720#M346783</link>
      <description>I want per logical volume of the perticolar vg . that lv is located in mount point is /dba&lt;BR /&gt;&lt;BR /&gt;If you have any script please send me.</description>
      <pubDate>Wed, 25 Feb 2009 21:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366720#M346783</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2009-02-25T21:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366721#M346784</link>
      <description>I will explain clearly in /db/tmpdb/tpdata is a file. This file is write the data in lv01. I want to write the script howmuch data is write into the lv of this file.</description>
      <pubDate>Wed, 25 Feb 2009 21:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366721#M346784</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2009-02-25T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366722#M346785</link>
      <description>Sorry - I do not have a script.&lt;BR /&gt;&lt;BR /&gt;You could run &lt;BR /&gt;&lt;BR /&gt;FS=/db/tmp/db &amp;lt;- mount point&lt;BR /&gt;bdf /$FS then grep or awk out the size.&lt;BR /&gt;&lt;BR /&gt;run this every 3 seconds in a loop and check the size differences. Is that what you are looking for?&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 25 Feb 2009 21:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366722#M346785</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-25T21:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366723#M346786</link>
      <description>&lt;BR /&gt;Put this in a loop:&lt;BR /&gt;&lt;BR /&gt;OLDSIZE=$SIZE&lt;BR /&gt;SIZE=$(bdf /tmp | grep -v kbytes | awk '{ print $3 }')&lt;BR /&gt;&lt;BR /&gt;then report OLDSIZE - SIZE&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 22:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366723#M346786</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-25T22:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366724#M346787</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;OLDSIZE=$SIZE&lt;BR /&gt;SIZE=$(bdf /tmp | grep -v kbytes | awk '{ print $3 }')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it's not executed. please give me the advice. How to execute.</description>
      <pubDate>Wed, 25 Feb 2009 22:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366724#M346787</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2009-02-25T22:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366725#M346788</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How can I execute the script per every 3 minutes in cronjab.&lt;BR /&gt;&lt;BR /&gt;How can i give the entry in the crontab file.</description>
      <pubDate>Thu, 26 Feb 2009 00:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366725#M346788</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2009-02-26T00:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366726#M346789</link>
      <description>you can add &lt;BR /&gt;echo $OLDSIZE $SIZE&lt;BR /&gt;&lt;BR /&gt;But you will have to do some arithmetic aswell if you want the differences.&lt;BR /&gt;&lt;BR /&gt;cron entry:&lt;BR /&gt;&lt;BR /&gt;0,3,6,9,12,15,18,...,54,57   *   *   *   *  /path/script &amp;gt;&amp;gt; /tmp/output&lt;BR /&gt;&lt;BR /&gt;fill in the ... with the other miutes.</description>
      <pubDate>Thu, 26 Feb 2009 00:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366726#M346789</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-26T00:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366727#M346790</link>
      <description>Sorry forgot to add:&lt;BR /&gt;&lt;BR /&gt;to edit the crontab file use&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;you may need to:&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;&lt;BR /&gt;before the crontab -e depending on what your edit is set to.&lt;BR /&gt;&lt;BR /&gt;Also if you are not running as root, you may need an entry in /etc/cron.allow</description>
      <pubDate>Thu, 26 Feb 2009 00:23:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366727#M346790</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-26T00:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366728#M346791</link>
      <description>Just reading through your posts again:&lt;BR /&gt; -&amp;gt; it's not executed. please give me the advice. How to execute.&lt;BR /&gt;&lt;BR /&gt;once you have created and saved the script, you need to set the execute bits in the permissions.&lt;BR /&gt;&lt;BR /&gt;eg: chmod 700 filename&lt;BR /&gt;&lt;BR /&gt;This will give the file read write and execute permissions for the owner. (-rwx------ permissions)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 00:29:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4366728#M346791</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-02-26T00:29:23Z</dc:date>
    </item>
  </channel>
</rss>

