<?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: Scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673179#M51400</link>
    <description>Michael&lt;BR /&gt;&lt;BR /&gt;Thanks for advice, will get cracking.  One of the problems I have is that I do not really get a chance to do scripting as it is done by others. And thing such as inetd etc have already been done.  Will plug on though and see where this get me.  &lt;BR /&gt;Thanks&lt;BR /&gt;Paul</description>
    <pubDate>Thu, 28 Feb 2002 05:16:54 GMT</pubDate>
    <dc:creator>Paul Thomson_2</dc:creator>
    <dc:date>2002-02-28T05:16:54Z</dc:date>
    <item>
      <title>Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673171#M51392</link>
      <description>I am just starting on the long scripting journey, but am having trouble coming up with ideas to write scripts about.  Can anyone suggest scenarios where a script may be useful to resolve ??  Please don't provide me with any as I really need to learn. I won't hold back on the points either.&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 28 Feb 2002 03:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673171#M51392</guid>
      <dc:creator>Paul Thomson_2</dc:creator>
      <dc:date>2002-02-28T03:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673172#M51393</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;In the below posting there was some ideas and scripts actually attached. You could without cheating use the ideas and write you own, without looking at the attachments....&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The ideas are just about endless.&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 28 Feb 2002 03:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673172#M51393</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-28T03:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673173#M51394</link>
      <description>OK Paul.  Here's one I've been considering working on.&lt;BR /&gt;&lt;BR /&gt;Say you've got a test box that has HP-UX 11.0 on one disk and HP-UX 11i on another.&lt;BR /&gt;&lt;BR /&gt;What I want is a script that will reset my primary boot disk for whichever version of HP-UX I want so that I don't have to interrupt the boot process if I want to reboot into the other version.&lt;BR /&gt;&lt;BR /&gt;I realize that this will differ based on the hardware paths for the disks on different machines, but those could be set as command line options or variables within the script.&lt;BR /&gt;&lt;BR /&gt;What do you think?</description>
      <pubDate>Thu, 28 Feb 2002 03:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673173#M51394</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-28T03:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673174#M51395</link>
      <description>Will have a go, may take some time though</description>
      <pubDate>Thu, 28 Feb 2002 03:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673174#M51395</guid>
      <dc:creator>Paul Thomson_2</dc:creator>
      <dc:date>2002-02-28T03:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673175#M51396</link>
      <description>Geez Patrick,&lt;BR /&gt;&lt;BR /&gt;You couldn't give Paul something easier for a &lt;BR /&gt;beginner?&lt;BR /&gt;&lt;BR /&gt;How about writing a simple menu based program&lt;BR /&gt;for operators that they could actually do &lt;BR /&gt;certain functions, like kill print jobs, users&lt;BR /&gt;query directories for downloads, check whether&lt;BR /&gt;databases are up.&lt;BR /&gt;&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 28 Feb 2002 04:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673175#M51396</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-28T04:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673176#M51397</link>
      <description>Hey, he asked for ideas Michael.  That really is something I've been thinking about doing.  I really don't think it should be that difficult.  I've had the framework of the thing in my mind for a while.  I just haven't gotten around to getting it typed in yet.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 04:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673176#M51397</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-28T04:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673177#M51398</link>
      <description>Michael&lt;BR /&gt;&lt;BR /&gt;Have been dabling with basic menus and stuff, I have attached an example, suppose I just want to walk before I can crawl.</description>
      <pubDate>Thu, 28 Feb 2002 04:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673177#M51398</guid>
      <dc:creator>Paul Thomson_2</dc:creator>
      <dc:date>2002-02-28T04:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673178#M51399</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;That's not a bad attempt at all. Certainly the&lt;BR /&gt;framework is there. I have two further suggestions for you which I don't believe were in the link I gave you before. &lt;BR /&gt;&lt;BR /&gt;Write a script that monitors essential processes that are supposed to be running on your system.&lt;BR /&gt;e.g. inetd, vhand, statdaemon, lpsched, others&lt;BR /&gt;that you may need for your applications. You &lt;BR /&gt;could start this script once out of inittab&lt;BR /&gt;and have it wake every x minutes to run again.&lt;BR /&gt;&lt;BR /&gt;The second one is more for security, where you&lt;BR /&gt;could monitor certain files for changes, set a&lt;BR /&gt;baseline, tell you what the changes are and &lt;BR /&gt;e-mail you the differences. These files could&lt;BR /&gt;include, passwd, group, inetd, services, &lt;BR /&gt;resolv.conf, sudoers (if used).&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 28 Feb 2002 05:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673178#M51399</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-28T05:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673179#M51400</link>
      <description>Michael&lt;BR /&gt;&lt;BR /&gt;Thanks for advice, will get cracking.  One of the problems I have is that I do not really get a chance to do scripting as it is done by others. And thing such as inetd etc have already been done.  Will plug on though and see where this get me.  &lt;BR /&gt;Thanks&lt;BR /&gt;Paul</description>
      <pubDate>Thu, 28 Feb 2002 05:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673179#M51400</guid>
      <dc:creator>Paul Thomson_2</dc:creator>
      <dc:date>2002-02-28T05:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673180#M51401</link>
      <description>Paul&lt;BR /&gt;&lt;BR /&gt;What about scripts that would aid investigation with regard to application support?&lt;BR /&gt;&lt;BR /&gt;You could look at some of the investigations performed by the helpdesk and simplify these&lt;BR /&gt;with the use of a script, looking in log files, C-ISAM files for entries errors etc</description>
      <pubDate>Thu, 28 Feb 2002 05:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673180#M51401</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-02-28T05:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673181#M51402</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Great Examples&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/index.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
      <pubDate>Thu, 28 Feb 2002 07:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673181#M51402</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-28T07:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673182#M51403</link>
      <description>Not that I want to take away the joy of writing a scripted menu system, but attached is a perl/Tk script I wrote as a training for myself to mimic the behaviour of the same written in C.&lt;BR /&gt;&lt;BR /&gt;If you've got all the required modules installed, cp the three files to /tmp and&lt;BR /&gt;&lt;BR /&gt;/tmp # xamen -m.&lt;BR /&gt;&lt;BR /&gt;Since the quest was for scripting, I guess you're not interested in the C program :)</description>
      <pubDate>Thu, 28 Feb 2002 14:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673182#M51403</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-02-28T14:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673183#M51404</link>
      <description>Hi Paul.&lt;BR /&gt;&lt;BR /&gt;If you want something to get your teeth in why not take a look at cfg2html.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://members.tripod.com/rose_swe/cfg/cfg.html" target="_blank"&gt;http://members.tripod.com/rose_swe/cfg/cfg.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You could see if you could do something similar without taking a look at the script.&lt;BR /&gt;&lt;BR /&gt;You could also write a script for a basic system monitoring that would mail the sys admin, say for example when filesystems fill up or if the cpu is at 100%, etc.&lt;BR /&gt;&lt;BR /&gt;Have fun&lt;BR /&gt;&lt;BR /&gt;George&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 14:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673183#M51404</guid>
      <dc:creator>George_Dodds</dc:creator>
      <dc:date>2002-02-28T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673184#M51405</link>
      <description>Hi Paul:&lt;BR /&gt;&lt;BR /&gt;Here is a useful idea and it will also teach you a valuable concept:&lt;BR /&gt;&lt;BR /&gt;Given a list of Process ID's (pids) supplied on the command line, your script should kill each one BUT using this method:&lt;BR /&gt;Send kill -15, -1, -2, -3, and kill -11 in that order and testing via kill -0 pid with a brief sleep to see if the kill succeeded.&lt;BR /&gt;&lt;BR /&gt;The idea is that you would send -kill -15, sleep a bit, and test to see if the process still exists before trying kill -1. If and only if a -k is supplied to your script would you finally send a kill -9. &lt;BR /&gt;&lt;BR /&gt;Your script should use getopts to process the command line. You should study why kill -9 is a very bad idea though it is taught as a routine practice in many Kindergarten Admin classes. You should man getopts and kill for details. You will actually find that this will become a very valuable addition to your sysadmin toolbox. &lt;BR /&gt;&lt;BR /&gt;Food for thought, Clay&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 14:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673184#M51405</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-28T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673185#M51406</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;The best way to learn is to see how other people tackled issues. Having access to sample scripts is the most helpful thing a sysadmin could have. You should also contemplate learning perl, along with the standard sh and ksh scripts.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 28 Feb 2002 14:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673185#M51406</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-28T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673186#M51407</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;How about a script to schedule a make_tape_recovery backup with the "at" command?&lt;BR /&gt;&lt;BR /&gt;-validate "at" arguments passed to the script&lt;BR /&gt;-accept and validate "tape drive to use" argument&lt;BR /&gt;-verify a tape is in the drive - if not, tell the user and ask if he wants to continue&lt;BR /&gt;-verify args are entered and provide a "usage" message if not&lt;BR /&gt;-add to a log file a message that this script ran, by whom, when, and when the make_tape_recovery is scheduled for&lt;BR /&gt;&lt;BR /&gt;I use a script like this now as well as a few others to "schedule" things I do infrequently and don't want to have to remember the syntax.&lt;BR /&gt;&lt;BR /&gt;Darrell&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 14:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting/m-p/2673186#M51407</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-02-28T14:33:22Z</dc:date>
    </item>
  </channel>
</rss>

