<?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 Calling Function in another Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089747#M729988</link>
    <description>Hi,&lt;BR /&gt;  I have a script file with me called "first.sh" and contains one function called "ValidateDOB" in it. I want to call this function from another script file "second.sh".&lt;BR /&gt;&lt;BR /&gt;Can you pleaase help me to call this ..</description>
    <pubDate>Mon, 22 Oct 2007 06:18:02 GMT</pubDate>
    <dc:creator>joseni</dc:creator>
    <dc:date>2007-10-22T06:18:02Z</dc:date>
    <item>
      <title>Calling Function in another Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089747#M729988</link>
      <description>Hi,&lt;BR /&gt;  I have a script file with me called "first.sh" and contains one function called "ValidateDOB" in it. I want to call this function from another script file "second.sh".&lt;BR /&gt;&lt;BR /&gt;Can you pleaase help me to call this ..</description>
      <pubDate>Mon, 22 Oct 2007 06:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089747#M729988</guid>
      <dc:creator>joseni</dc:creator>
      <dc:date>2007-10-22T06:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function in another Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089748#M729989</link>
      <description>Hi Joseni,&lt;BR /&gt;&lt;BR /&gt;to do this you want to "source" first.sh from second.sh this is done using a period "."&lt;BR /&gt;&lt;BR /&gt;Eg&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# this is second.sh&lt;BR /&gt;&lt;BR /&gt;# Source first.sh&lt;BR /&gt;. /path/to/first.sh&lt;BR /&gt;&lt;BR /&gt;# do stuff here&lt;BR /&gt;ValidateDOB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Philip.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089748#M729989</guid>
      <dc:creator>Philip Gunter</dc:creator>
      <dc:date>2007-10-22T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function in another Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089749#M729990</link>
      <description>Beside sourcing the file, you can also set FPATH to the directory where each function is in a file with the same name.</description>
      <pubDate>Tue, 23 Oct 2007 01:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089749#M729990</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-10-23T01:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Function in another Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089750#M729991</link>
      <description>Hi,&lt;BR /&gt;bext solutin is to isolate teh function into a file and recall it by two script.&lt;BR /&gt;i.e.:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;script1&lt;BR /&gt;....&lt;BR /&gt;. ValidateDOB.ksh&lt;BR /&gt;ValidateDOB&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;script2&lt;BR /&gt;....&lt;BR /&gt;. ValidateDOB.ksh&lt;BR /&gt;ValidateDOB&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;in alternative you can use the FPATCH variable.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 23 Oct 2007 03:13:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-function-in-another-script/m-p/4089750#M729991</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-10-23T03:13:08Z</dc:date>
    </item>
  </channel>
</rss>

