<?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: Shell script help wanted in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228982#M714560</link>
    <description>Choosing a 'language' is a hard task.&lt;BR /&gt;For instance, your performance is best if you write it efficiently in C. But there a fewer people available to maintain C programs nowadays.&lt;BR /&gt;And writing as a shell script is probably on of the slowest solutions, but is more portable across hardware and unix versions. And since the commands in a shell script are the same as on the prompt, they are more accessible by other sysadmins.&lt;BR /&gt;&lt;BR /&gt;So, if you're the only one maintaining the scripts in the coming years, your choice is free. But if you are part of a sysadmin organization and others have to maintain and understand what you have done, your choice is limited to the general knowledge within the organization.&lt;BR /&gt;&lt;BR /&gt;As for the monitoring it self: I would go for specific programs for the specific monitoring, perhaps with a general include file containing functions that make the writing more easy. Then you can start those programs from cron, for instance.&lt;BR /&gt;&lt;BR /&gt;Just my 2 cents.</description>
    <pubDate>Thu, 01 Apr 2004 04:37:31 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2004-04-01T04:37:31Z</dc:date>
    <item>
      <title>Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228976#M714554</link>
      <description>I am supposed to write an script that does some tasks like below:&lt;BR /&gt;&lt;BR /&gt;Can somebody please help me what kind of scripting language I should use? Should it be perl or Shell scripting? I think there is also some "awk" work. The shell that I am using is bourne/hp-ux. So, how do I know if bourne supports all the features? There could be some more tasks in future. What is the best way to implement it? Some of the portions may be reuseable. Could you please comment if there is anything that cannot be done (from below)?&lt;BR /&gt;&lt;BR /&gt;Here are some tasks:&lt;BR /&gt;&lt;BR /&gt;Monitor disk space, Notify (via email) when something wrong (bdf -bi)&lt;BR /&gt;Monitor free blocks via unix, Notify (via email)when something wrong (df -k)&lt;BR /&gt;select count(*) from a few tables in oracle, notify (via email)when something wrong&lt;BR /&gt;Changing file name extension (file name extension has a number that needs to be calculated)&lt;BR /&gt;Moving files to a different directory&lt;BR /&gt;Monitor processes .. ( 3 processes must always be running otherwise notify (via email))&lt;BR /&gt;Search a file for keywords (Need to monitor the content of file)&lt;BR /&gt;Creating a file&lt;BR /&gt;killing processes&lt;BR /&gt;su as root, (some notifications depending on condition)&lt;BR /&gt;issue a command&lt;BR /&gt;check date and time on processes&lt;BR /&gt;issue ls -l, if files with .XXX ext'n are found, notify&lt;BR /&gt;change dir, if files older than today, notify&lt;BR /&gt;&lt;BR /&gt;I would greatly appreciate any suggestions/comments/questions from you.</description>
      <pubDate>Wed, 24 Mar 2004 17:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228976#M714554</guid>
      <dc:creator>Chang_6</dc:creator>
      <dc:date>2004-03-24T17:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228977#M714555</link>
      <description>You could handle these with shell scripting and or perl scripts.&lt;BR /&gt;&lt;BR /&gt;I'm attaching a tar file with a few starter scripts that will give you a base with which to start your process.&lt;BR /&gt;&lt;BR /&gt;See attachment.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 24 Mar 2004 17:29:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228977#M714555</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-24T17:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228978#M714556</link>
      <description>Its mostly been done before.&lt;BR /&gt;&lt;BR /&gt;Check out this man's past questions:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=BR180643&amp;amp;forumId=1" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=BR180643&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;He has three threads filled with scripts that sysadmins can't live without.&lt;BR /&gt;&lt;BR /&gt;Almost everything you are looking for is in those threads.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 24 Mar 2004 17:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228978#M714556</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-24T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228979#M714557</link>
      <description>Unless you go to great lengths, you are not running the Bourne shell under HP-UX, you are using the POSIX shell which is essentially the Korn shell and is rather fully featured.&lt;BR /&gt;&lt;BR /&gt;The answer to your question probably a mixture of all three. If I were forced to choose only one my answer would be Perl but the learning curve is the steepest.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 17:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228979#M714557</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-24T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228980#M714558</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is a cool site&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.shelldorado.com/" target="_blank"&gt;http://www.shelldorado.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Heiner's SHELLdorado&lt;BR /&gt;SHELLdorado - your UNIX shell scripting resource &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 07:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228980#M714558</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-03-25T07:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228981#M714559</link>
      <description>favourite sysadmin's scripts&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x026250011d20d6118ff40090279cd0f9%2C00.html&amp;amp;admit=716493758+1080220098416+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x026250011d20d6118ff40090279cd0f9%2C00.html&amp;amp;admit=716493758+1080220098416+28353475&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x836cc1c4ceddd61190050090279cd0f9%2C00.html&amp;amp;admit=716493758+1080220148545+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x836cc1c4ceddd61190050090279cd0f9%2C00.html&amp;amp;admit=716493758+1080220148545+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 25 Mar 2004 08:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228981#M714559</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-03-25T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help wanted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228982#M714560</link>
      <description>Choosing a 'language' is a hard task.&lt;BR /&gt;For instance, your performance is best if you write it efficiently in C. But there a fewer people available to maintain C programs nowadays.&lt;BR /&gt;And writing as a shell script is probably on of the slowest solutions, but is more portable across hardware and unix versions. And since the commands in a shell script are the same as on the prompt, they are more accessible by other sysadmins.&lt;BR /&gt;&lt;BR /&gt;So, if you're the only one maintaining the scripts in the coming years, your choice is free. But if you are part of a sysadmin organization and others have to maintain and understand what you have done, your choice is limited to the general knowledge within the organization.&lt;BR /&gt;&lt;BR /&gt;As for the monitoring it self: I would go for specific programs for the specific monitoring, perhaps with a general include file containing functions that make the writing more easy. Then you can start those programs from cron, for instance.&lt;BR /&gt;&lt;BR /&gt;Just my 2 cents.</description>
      <pubDate>Thu, 01 Apr 2004 04:37:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help-wanted/m-p/3228982#M714560</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-04-01T04:37:31Z</dc:date>
    </item>
  </channel>
</rss>

