<?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: Expect/For-While Loop or Source in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278552#M12178</link>
    <description>Hi, being an old-fashioned ksh person, I'd wrap that script in a ksh script.&lt;BR /&gt;&lt;BR /&gt;You'll need a file with the correct 5 arguments, or however many they were, seperated by a space, or a tab might work, then you can do the following:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;for $line in `cat /path/to/config/file`&lt;BR /&gt;do&lt;BR /&gt;/path/to/your/script $line&lt;BR /&gt;done</description>
    <pubDate>Tue, 18 May 2004 03:11:33 GMT</pubDate>
    <dc:creator>Michael Williams_6</dc:creator>
    <dc:date>2004-05-18T03:11:33Z</dc:date>
    <item>
      <title>Expect/For-While Loop or Source</title>
      <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278551#M12177</link>
      <description>I have attached the following script, and was wondering how I would go about adding either an entry for Source=RouterIP (Router IP being any file containing the addresses of routers I'm trying to manage configs for) or...&lt;BR /&gt;&lt;BR /&gt;How would I go about doing a for-while loop that does queries against a range of hosts from DNS?&lt;BR /&gt;&lt;BR /&gt;Of course, the Source option would be easier, but how do I integrate it into my existing script, which works great, but for only ONE host?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 May 2004 13:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278551#M12177</guid>
      <dc:creator>Michael Lyon</dc:creator>
      <dc:date>2004-05-17T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expect/For-While Loop or Source</title>
      <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278552#M12178</link>
      <description>Hi, being an old-fashioned ksh person, I'd wrap that script in a ksh script.&lt;BR /&gt;&lt;BR /&gt;You'll need a file with the correct 5 arguments, or however many they were, seperated by a space, or a tab might work, then you can do the following:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;for $line in `cat /path/to/config/file`&lt;BR /&gt;do&lt;BR /&gt;/path/to/your/script $line&lt;BR /&gt;done</description>
      <pubDate>Tue, 18 May 2004 03:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278552#M12178</guid>
      <dc:creator>Michael Williams_6</dc:creator>
      <dc:date>2004-05-18T03:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expect/For-While Loop or Source</title>
      <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278553#M12179</link>
      <description>Arse, that first line should have read:&lt;BR /&gt;&lt;BR /&gt;for line in `cat /path/to/config/file | grep -v "^#"`</description>
      <pubDate>Tue, 18 May 2004 03:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278553#M12179</guid>
      <dc:creator>Michael Williams_6</dc:creator>
      <dc:date>2004-05-18T03:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expect/For-While Loop or Source</title>
      <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278554#M12180</link>
      <description>Michael, &lt;BR /&gt;that's&lt;BR /&gt;&lt;BR /&gt;for line in `grep -v "^#" /path/to/config/file`&lt;BR /&gt;&lt;BR /&gt;Peace, R.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2004 03:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278554#M12180</guid>
      <dc:creator>Roberto Polli</dc:creator>
      <dc:date>2004-05-18T03:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expect/For-While Loop or Source</title>
      <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278555#M12181</link>
      <description>Just as good, I have no idea why I always cat and pipe to grep - habit I guess!</description>
      <pubDate>Tue, 18 May 2004 03:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278555#M12181</guid>
      <dc:creator>Michael Williams_6</dc:creator>
      <dc:date>2004-05-18T03:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expect/For-While Loop or Source</title>
      <link>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278556#M12182</link>
      <description>Thanks for the help...it is greatly appreciated.</description>
      <pubDate>Tue, 18 May 2004 10:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/expect-for-while-loop-or-source/m-p/3278556#M12182</guid>
      <dc:creator>Michael Lyon</dc:creator>
      <dc:date>2004-05-18T10:01:54Z</dc:date>
    </item>
  </channel>
</rss>

