<?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: Calling a script with a list in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283924#M641433</link>
    <description>Hi (again) Den:&lt;BR /&gt;&lt;BR /&gt;As already noted, the 'shift' I imposed is meaningless unless you wanted to reference '$1'.  I was oscillating between using the 'for' and a 'while' loop along the lines Dennis wrote.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 06 Jun 2011 17:22:03 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2011-06-06T17:22:03Z</dc:date>
    <item>
      <title>Calling a script with a list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283919#M641428</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Here the call&lt;BR /&gt;/test/myscript.ksh user1 user2 user3 ....&lt;BR /&gt;&lt;BR /&gt;The list of user is not defined&lt;BR /&gt;&lt;BR /&gt;How to read all parameters in a loop ?&lt;BR /&gt;&lt;BR /&gt;if the list was in a file no problem but I want this list coming thru the commad line ....&lt;BR /&gt;&lt;BR /&gt;How to do the tric ?&lt;BR /&gt;&lt;BR /&gt;Bests regards&lt;BR /&gt;Den</description>
      <pubDate>Mon, 06 Jun 2011 11:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283919#M641428</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2011-06-06T11:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a script with a list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283920#M641429</link>
      <description>&lt;!--!*#--&gt;Hi Den:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;for X in $@&lt;BR /&gt;do&lt;BR /&gt;    echo ${X}&lt;BR /&gt;    shift&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 06 Jun 2011 11:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283920#M641429</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-06-06T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a script with a list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283921#M641430</link>
      <description>&lt;!--!*#--&gt;&amp;gt;     shift&lt;BR /&gt;&lt;BR /&gt;This buys you what, exactly?</description>
      <pubDate>Mon, 06 Jun 2011 11:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283921#M641430</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-06T11:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a script with a list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283922#M641431</link>
      <description>&lt;!--!*#--&gt;&amp;gt;Steven: This buys you what, exactly?&lt;BR /&gt;&lt;BR /&gt;Right, not so much, unless you are working on $1.&lt;BR /&gt;&lt;BR /&gt;while [ $# -ne 0 ]; do&lt;BR /&gt;   echo "$1"&lt;BR /&gt;   shift&lt;BR /&gt;done</description>
      <pubDate>Mon, 06 Jun 2011 11:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283922#M641431</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-06-06T11:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a script with a list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283923#M641432</link>
      <description>JRF's solution is doing the trick perfectly ! &lt;BR /&gt;Thanks again</description>
      <pubDate>Mon, 06 Jun 2011 17:02:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283923#M641432</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2011-06-06T17:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a script with a list</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283924#M641433</link>
      <description>Hi (again) Den:&lt;BR /&gt;&lt;BR /&gt;As already noted, the 'shift' I imposed is meaningless unless you wanted to reference '$1'.  I was oscillating between using the 'for' and a 'while' loop along the lines Dennis wrote.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 06 Jun 2011 17:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-a-script-with-a-list/m-p/5283924#M641433</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-06-06T17:22:03Z</dc:date>
    </item>
  </channel>
</rss>

