<?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: Script which calls another perl script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890530#M102799</link>
    <description>Getopt::Long makes this *MUCH* easier :)&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use Getopt::Long qw(:config bundling nopermute); &lt;BR /&gt;&lt;BR /&gt;my $mode = 0;&lt;BR /&gt;my $epoch = 0; &lt;BR /&gt;GetOptions (&lt;BR /&gt;"e:i" =&amp;gt; \$epoch,&lt;BR /&gt;"m" =&amp;gt; sub { $mode = 0 },&lt;BR /&gt;"a" =&amp;gt; sub { $mode = 1 },&lt;BR /&gt;"c" =&amp;gt; sub { $mode = 2 },&lt;BR /&gt;} or die "bad option";</description>
    <pubDate>Fri, 24 Jan 2003 18:04:05 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2003-01-24T18:04:05Z</dc:date>
    <item>
      <title>Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890524#M102793</link>
      <description>Experts,&lt;BR /&gt;&lt;BR /&gt;Could someone guide me on "how to pass on a variable' value to the called in script which is written in perl", where the calling i.e; the parent script is standard Unix Posix shell.&lt;BR /&gt;&lt;BR /&gt;I'm using the Net /FTP functionality in Perl for my scripting. So from my parent Unix script, i will gather the list of files to be trasferred, and that list will be handed over to the Perl script one by one, using which I would have better error code trappings or so.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Cheers !!!&lt;BR /&gt;Mathew. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Jan 2003 17:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890524#M102793</guid>
      <dc:creator>Varghese Mathew</dc:creator>
      <dc:date>2003-01-24T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890525#M102794</link>
      <description>When passing arguments to a Perl script, you use them via the @ARGV. In your shell script call the Perl script using the list as an argument.&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 24 Jan 2003 17:40:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890525#M102794</guid>
      <dc:creator>Steve Labar</dc:creator>
      <dc:date>2003-01-24T17:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890526#M102795</link>
      <description>attached is a script that takes and processes command line arguments.&lt;BR /&gt;&lt;BR /&gt;it is a perl script.&lt;BR /&gt;&lt;BR /&gt;You can process as many arguments seperated by spaces as you need by modifying this script.</description>
      <pubDate>Fri, 24 Jan 2003 17:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890526#M102795</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-01-24T17:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890527#M102796</link>
      <description>Read this thread: &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0e7fef70e827d711abdc0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0e7fef70e827d711abdc0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Tom asked the same, and got the right answers</description>
      <pubDate>Fri, 24 Jan 2003 17:47:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890527#M102796</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-24T17:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890528#M102797</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This should serve as an example:&lt;BR /&gt;&lt;BR /&gt;ftpget.pl file1 file1 file3&lt;BR /&gt;&lt;BR /&gt;See the attached Perl script.&lt;BR /&gt;------------------------&lt;BR /&gt;Another useful technique is getopts:&lt;BR /&gt;&lt;BR /&gt;use Getopt::Std;&lt;BR /&gt;use English;&lt;BR /&gt;use strict;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;our ($opt_m,$opt_a,$opt_c,$opt_e);&lt;BR /&gt;my $mode = 0;&lt;BR /&gt;my $knt = 0;&lt;BR /&gt;my $epoch = 0;&lt;BR /&gt;getopts('mace:');&lt;BR /&gt;&lt;BR /&gt;if (defined($opt_e))&lt;BR /&gt;  {&lt;BR /&gt;    $epoch = $opt_e;&lt;BR /&gt;    ++$knt;&lt;BR /&gt;  }&lt;BR /&gt;if (defined($opt_m))&lt;BR /&gt;  {&lt;BR /&gt;    $mode = 0;&lt;BR /&gt;    ++$knt;&lt;BR /&gt;  }&lt;BR /&gt;if (defined($opt_a))&lt;BR /&gt;  {&lt;BR /&gt;    $mode = 1;&lt;BR /&gt;    ++$knt;&lt;BR /&gt;  }&lt;BR /&gt;if (defined($opt_c))&lt;BR /&gt;  {&lt;BR /&gt;    $mode = 2;&lt;BR /&gt;    ++$knt;&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;Note that the 'e' arg is followed by a colon and thus expect a value (-e 45) to be supplied while the others simply expect to be found (or not).</description>
      <pubDate>Fri, 24 Jan 2003 17:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890528#M102797</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-24T17:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890529#M102798</link>
      <description>Recent versions op Getopt::Long make this *MUCH* easier :)&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use Getopt::Long qw(:config bundling nopermute); &lt;BR /&gt;&lt;BR /&gt;my $mode = 0;&lt;BR /&gt;my $epoch = 0; &lt;BR /&gt;GetOptions (&lt;BR /&gt;"e:i" =&amp;gt; \$epoch,&lt;BR /&gt;"m" =&amp;gt; sub { $mode = 0 },&lt;BR /&gt;"a" =&amp;gt; sub { $mode = 1 },&lt;BR /&gt;"c" =&amp;gt; sub { $mode = 2 },&lt;BR /&gt;} or die "bad option";</description>
      <pubDate>Fri, 24 Jan 2003 18:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890529#M102798</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-24T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script which calls another perl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890530#M102799</link>
      <description>Getopt::Long makes this *MUCH* easier :)&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use Getopt::Long qw(:config bundling nopermute); &lt;BR /&gt;&lt;BR /&gt;my $mode = 0;&lt;BR /&gt;my $epoch = 0; &lt;BR /&gt;GetOptions (&lt;BR /&gt;"e:i" =&amp;gt; \$epoch,&lt;BR /&gt;"m" =&amp;gt; sub { $mode = 0 },&lt;BR /&gt;"a" =&amp;gt; sub { $mode = 1 },&lt;BR /&gt;"c" =&amp;gt; sub { $mode = 2 },&lt;BR /&gt;} or die "bad option";</description>
      <pubDate>Fri, 24 Jan 2003 18:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-which-calls-another-perl-script/m-p/2890530#M102799</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-24T18:04:05Z</dc:date>
    </item>
  </channel>
</rss>

