<?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: simple script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541676#M26716</link>
    <description>Try the script!&lt;BR /&gt;&lt;BR /&gt;for i in `cat $HOSTLIST` &lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Jun 2001 13:58:16 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2001-06-18T13:58:16Z</dc:date>
    <item>
      <title>simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541671#M26711</link>
      <description>i need to write a script which will perform an 'rm' on a certain file on about 50 machines. I have a list of the machines hostnames in a file. As easy as this is for some reason my script will not work. Script as follows:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;HOSTLIST=/usr/local/hostlist&lt;BR /&gt;for HOST in $HOSTLIST&lt;BR /&gt;do&lt;BR /&gt;     rsh $HOST rm /etc/file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why oh why does it not work. I have tried many variants on this including the "while read .......done &amp;lt; /usr/local/hostlist" version.&lt;BR /&gt;&lt;BR /&gt;Any ideas guys/gals?</description>
      <pubDate>Mon, 18 Jun 2001 13:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541671#M26711</guid>
      <dc:creator>Craig Basham</dc:creator>
      <dc:date>2001-06-18T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541672#M26712</link>
      <description>Try remsh $HOST -n "rm /etc/file" &lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2001 13:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541672#M26712</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-06-18T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541673#M26713</link>
      <description>vincenzo's comment will work, if it doesn't check the .rhost file and make sure your setup right in there.</description>
      <pubDate>Mon, 18 Jun 2001 13:50:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541673#M26713</guid>
      <dc:creator>boley janowski</dc:creator>
      <dc:date>2001-06-18T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541674#M26714</link>
      <description>please test first!!!&lt;BR /&gt;Bill&lt;BR /&gt;&lt;BR /&gt;usage filerm filename&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;export HOSTLIST=/root/list&lt;BR /&gt;&lt;BR /&gt;for i in `cat $HOSTLIST`&lt;BR /&gt;do   echo "==================================="    echo "Doing $i"&lt;BR /&gt;    remsh $i 'rm $1' &lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2001 13:51:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541674#M26714</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-18T13:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541675#M26715</link>
      <description>the "rsh" bit is not the problem. The script interprets /usr/local/hostlist as a machine hostname. i want it to read each entry in the file and perform an actiuon on it.</description>
      <pubDate>Mon, 18 Jun 2001 13:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541675#M26715</guid>
      <dc:creator>Craig Basham</dc:creator>
      <dc:date>2001-06-18T13:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541676#M26716</link>
      <description>Try the script!&lt;BR /&gt;&lt;BR /&gt;for i in `cat $HOSTLIST` &lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2001 13:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541676#M26716</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-18T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541677#M26717</link>
      <description>Change your script to:-&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;HOSTLIST=/usr/local/hostlist &lt;BR /&gt;for HOST in $(&amp;lt; ${HOSTLIST}) &lt;BR /&gt;do &lt;BR /&gt;remsh $HOST rm /etc/file &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I'd test it first by changing the 'rm' to 'll'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John &lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2001 14:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541677#M26717</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2001-06-18T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541678#M26718</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;here just another solution:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;cat /usr/local/hostlist | while read HOST &lt;BR /&gt;do &lt;BR /&gt;remsh $HOST rm /etc/file &lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2001 14:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541678#M26718</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-06-18T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541679#M26719</link>
      <description>Or :&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;while read HOST &lt;BR /&gt;do &lt;BR /&gt;remsh $HOST rm /etc/file &lt;BR /&gt;done &amp;lt; /usr/local/hostlist &lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jun 2001 16:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script/m-p/2541679#M26719</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-06-18T16:00:39Z</dc:date>
    </item>
  </channel>
</rss>

