<?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: swinstall script problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569129#M227906</link>
    <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;If you don't want interactive session, then you need to specify &lt;BR /&gt;'-x patch_match_target=true'&lt;BR /&gt;as one of swinstall option. &lt;BR /&gt;&lt;BR /&gt;-Amit</description>
    <pubDate>Thu, 23 Jun 2005 06:15:11 GMT</pubDate>
    <dc:creator>Amit Agarwal_1</dc:creator>
    <dc:date>2005-06-23T06:15:11Z</dc:date>
    <item>
      <title>swinstall script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569127#M227904</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want to install sw or patches non interactive from a depotserver per script.&lt;BR /&gt;But it dont't work can anybody help me ??&lt;BR /&gt;&lt;BR /&gt;I get the Message: The interactive UI was invoked, since no software was specified.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh -xv&lt;BR /&gt;&lt;BR /&gt;set depotpath = ( \&lt;BR /&gt;10.xxx.x.xxx:/var/spool/sw/hpux11_800/SSH \*)&lt;BR /&gt;#&lt;BR /&gt;set selist = ( 05712 ) &lt;BR /&gt;&lt;BR /&gt;foreach sevar ( ${selist} )&lt;BR /&gt;echo hp${sevar}&lt;BR /&gt;ping hp${sevar} 200 -n 2 &amp;gt; /dev/null&lt;BR /&gt;if ($status != 0) then&lt;BR /&gt;        echo ABBRUCH  hp${sevar}&lt;BR /&gt;else&lt;BR /&gt; foreach depotvar ( ${depotpath} )&lt;BR /&gt;        remsh hp${sevar} /usr/sbin/swinstall \&lt;BR /&gt;        -x autoreboot=false \&lt;BR /&gt;        -x mount_all_filesystems=false \&lt;BR /&gt;        -s ${depotvar}&lt;BR /&gt;        end&lt;BR /&gt;endif&lt;BR /&gt;end&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;BR /&gt;If I try on a Client, it works fine:&lt;BR /&gt;swinstall -s 10.xxx.x.xxx:/var/spool/sw/hpux11_800/SSH \*</description>
      <pubDate>Thu, 23 Jun 2005 03:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569127#M227904</guid>
      <dc:creator>Peter Lachnitt</dc:creator>
      <dc:date>2005-06-23T03:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569128#M227905</link>
      <description>Hi peter,&lt;BR /&gt;&lt;BR /&gt;Following is the abstract of man swinstall:&lt;BR /&gt;Install all the software from local depot /tmp/sample.depot.1, using&lt;BR /&gt;      any response files generated by request scripts:&lt;BR /&gt; &lt;BR /&gt;#swinstall -s /tmp/sample.depot.1 -x ask=true \*&lt;BR /&gt;&lt;BR /&gt;Try this, for more information refer man pages of swinstall.&lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;eknath</description>
      <pubDate>Thu, 23 Jun 2005 04:23:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569128#M227905</guid>
      <dc:creator>Eknath</dc:creator>
      <dc:date>2005-06-23T04:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569129#M227906</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;If you don't want interactive session, then you need to specify &lt;BR /&gt;'-x patch_match_target=true'&lt;BR /&gt;as one of swinstall option. &lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Thu, 23 Jun 2005 06:15:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569129#M227906</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-06-23T06:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall script problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569130#M227907</link>
      <description>I think you;ve mixed up csh commands with ksh. foreach is a C shell construct. It is particularly difficult to run multiple shells. Because csh is so incompatilbe with POSIX shells such as ksh, bash and HP's sh, it is recommended to do all sysadmin work in a POSIX shell, preferably /usr/bin/sh which is HP's POSIX shell. And in ALL cases, place the interpreter name as line number 1:&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt; &lt;BR /&gt;for all shell scripts.&lt;BR /&gt;&lt;BR /&gt;The example that works on the client is nothing like the remsh version. On the client, use the command you're trying to run with remsh:&lt;BR /&gt; &lt;BR /&gt;/usr/sbin/swinstall -x autoreboot=false -x mount_all_filesystems=false -s /your_depot_fullpath&lt;BR /&gt; &lt;BR /&gt;and you'll see that it fails. swinstall requires that you specify exactly what parts of the depot you want to load--there is no default, so in the manual command, you supplied this value: \* where the star says load all. So you must add the \* to remsh, BUT with the star, you now have a shell special character, so enclose the entire remsh string in quotes:&lt;BR /&gt; &lt;BR /&gt;remsh hp${sevar} "/usr/sbin/swinstall -x autoreboot=false -x mount_all_filesystems=false -s /your_depot_fullpath \*"&lt;BR /&gt; &lt;BR /&gt;And finally, you can trace the steps of your script with the -x option. Just insert this the interpreter line:&lt;BR /&gt; &lt;BR /&gt;set -x</description>
      <pubDate>Thu, 23 Jun 2005 07:30:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swinstall-script-problem/m-p/3569130#M227907</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-06-23T07:30:29Z</dc:date>
    </item>
  </channel>
</rss>

