<?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: Alias In Shell Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787625#M78795</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;.kshrc &lt;BR /&gt;=======&lt;BR /&gt;alias frm="export ORACLE_HOME=/d2k/app/oracle7.2 PATH=$PATH:/d2k/app/oracle7.2/b&lt;BR /&gt;in TWO_TASK=FRS"&lt;BR /&gt;&lt;BR /&gt;alias  nfrm="export ORACLE_HOME=/data1/app/oracle/product/8.0.4 PATH=$PATH:/data&lt;BR /&gt;1/app/oracle/product/8.0.4/bin; unset TWO_TASK" &lt;BR /&gt;&lt;BR /&gt;t.sh&lt;BR /&gt;=====&lt;BR /&gt;frm   # defined alias&lt;BR /&gt;echo "$TWO_TASK"&lt;BR /&gt;&lt;BR /&gt;nofrm  #Defined alias&lt;BR /&gt;echo "$TWO_TASK"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Aug 2002 10:17:50 GMT</pubDate>
    <dc:creator>Ash_4</dc:creator>
    <dc:date>2002-08-16T10:17:50Z</dc:date>
    <item>
      <title>Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787618#M78788</link>
      <description>Hi,&lt;BR /&gt;   Can i user defined aliases in shell script.&lt;BR /&gt;When used it gives "not found"&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 16 Aug 2002 09:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787618#M78788</guid>
      <dc:creator>Ash_4</dc:creator>
      <dc:date>2002-08-16T09:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787619#M78789</link>
      <description>Try using the full path:&lt;BR /&gt;/usr/bin/alias</description>
      <pubDate>Fri, 16 Aug 2002 09:42:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787619#M78789</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2002-08-16T09:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787620#M78790</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I tested it, for some reason it did not work.&lt;BR /&gt;A simple workaround. &lt;BR /&gt;&lt;BR /&gt;In the beginning of your script:&lt;BR /&gt;&lt;BR /&gt;. $HOME/.kshrc&lt;BR /&gt;&lt;BR /&gt;The "." in the beginning of the line is important.</description>
      <pubDate>Fri, 16 Aug 2002 09:46:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787620#M78790</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-16T09:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787621#M78791</link>
      <description>Hi&lt;BR /&gt;Note there is a space between the "." and the rest of the line.</description>
      <pubDate>Fri, 16 Aug 2002 09:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787621#M78791</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-16T09:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787622#M78792</link>
      <description>Hi,&lt;BR /&gt;   Still No success.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 10:07:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787622#M78792</guid>
      <dc:creator>Ash_4</dc:creator>
      <dc:date>2002-08-16T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787623#M78793</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you got a copy/snippet of the script?&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Fri, 16 Aug 2002 10:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787623#M78793</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-08-16T10:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787624#M78794</link>
      <description>Hi&lt;BR /&gt;Have you tried my "workaround". I have tested it and it works.</description>
      <pubDate>Fri, 16 Aug 2002 10:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787624#M78794</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-16T10:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787625#M78795</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;.kshrc &lt;BR /&gt;=======&lt;BR /&gt;alias frm="export ORACLE_HOME=/d2k/app/oracle7.2 PATH=$PATH:/d2k/app/oracle7.2/b&lt;BR /&gt;in TWO_TASK=FRS"&lt;BR /&gt;&lt;BR /&gt;alias  nfrm="export ORACLE_HOME=/data1/app/oracle/product/8.0.4 PATH=$PATH:/data&lt;BR /&gt;1/app/oracle/product/8.0.4/bin; unset TWO_TASK" &lt;BR /&gt;&lt;BR /&gt;t.sh&lt;BR /&gt;=====&lt;BR /&gt;frm   # defined alias&lt;BR /&gt;echo "$TWO_TASK"&lt;BR /&gt;&lt;BR /&gt;nofrm  #Defined alias&lt;BR /&gt;echo "$TWO_TASK"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 10:17:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787625#M78795</guid>
      <dc:creator>Ash_4</dc:creator>
      <dc:date>2002-08-16T10:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787626#M78796</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;t.sh &lt;BR /&gt;===== &lt;BR /&gt;. $HOME/.kshrc&lt;BR /&gt;frm # defined alias &lt;BR /&gt;echo "$TWO_TASK" &lt;BR /&gt;&lt;BR /&gt;nofrm #Defined alias &lt;BR /&gt;echo "$TWO_TASK" &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 10:21:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787626#M78796</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-16T10:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787627#M78797</link>
      <description>Or just start your script with the first line like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;This way it takes the .kshrc.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 10:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787627#M78797</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-08-16T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787628#M78798</link>
      <description>It worked Leif Halvarsson .&lt;BR /&gt;Thanks to all.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 10:37:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787628#M78798</guid>
      <dc:creator>Ash_4</dc:creator>
      <dc:date>2002-08-16T10:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787629#M78799</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When calling up your script, invoke it in the current shell like so:&lt;BR /&gt;. t.sh&lt;BR /&gt;&lt;BR /&gt;hope this helps.</description>
      <pubDate>Fri, 16 Aug 2002 10:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787629#M78799</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-08-16T10:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alias In Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787630#M78800</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;When defining alias in .kshrc, use the -x option (= exported alias).&lt;BR /&gt;Example:&lt;BR /&gt;alias -x dir=ls&lt;BR /&gt;&lt;BR /&gt;Now the alias should work in scripts witout reading the .kshrc file in the script (the line:&lt;BR /&gt;. $HOME/.kshrc&lt;BR /&gt;is not necessary). &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Aug 2002 18:57:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-in-shell-script/m-p/2787630#M78800</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-18T18:57:54Z</dc:date>
    </item>
  </channel>
</rss>

