<?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: creating custom shell commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093451#M806643</link>
    <description>Hi,&lt;BR /&gt;The best for you is to use "alias" command&lt;BR /&gt;use this in the .profile&lt;BR /&gt;alias docs="cd /web-root/web/jsp; pwd"&lt;BR /&gt;&lt;BR /&gt;now if you type&lt;BR /&gt;docs it will run the command.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
    <pubDate>Wed, 15 Oct 2003 00:26:13 GMT</pubDate>
    <dc:creator>Rajeev  Shukla</dc:creator>
    <dc:date>2003-10-15T00:26:13Z</dc:date>
    <item>
      <title>creating custom shell commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093449#M806641</link>
      <description>Hi,&lt;BR /&gt;I have created some shortcuts like &lt;BR /&gt;docs=`cd /web-root/web/jsp; pwd;` and placed in my .profile file. &lt;BR /&gt;&lt;BR /&gt;Expecting if i type in docs, i will get changed to the directory desired,&lt;BR /&gt;&lt;BR /&gt;Insted i get the following error&lt;BR /&gt;"sh: docs:  not found"&lt;BR /&gt;&lt;BR /&gt;Can any one help me.&lt;BR /&gt;&lt;BR /&gt;Thanx,&lt;BR /&gt;Nag</description>
      <pubDate>Wed, 15 Oct 2003 00:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093449#M806641</guid>
      <dc:creator>nagendra_3</dc:creator>
      <dc:date>2003-10-15T00:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: creating custom shell commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093450#M806642</link>
      <description>For csh you can use alias&lt;BR /&gt;&lt;BR /&gt;alias docs `ls /web-root/web/jsp`&lt;BR /&gt;&lt;BR /&gt;For ksh/sh&lt;BR /&gt;&lt;BR /&gt;$docs()&lt;BR /&gt;&amp;gt;ls /web-root/web/jsp&lt;BR /&gt;$alias docs='docs'</description>
      <pubDate>Wed, 15 Oct 2003 00:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093450#M806642</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-10-15T00:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: creating custom shell commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093451#M806643</link>
      <description>Hi,&lt;BR /&gt;The best for you is to use "alias" command&lt;BR /&gt;use this in the .profile&lt;BR /&gt;alias docs="cd /web-root/web/jsp; pwd"&lt;BR /&gt;&lt;BR /&gt;now if you type&lt;BR /&gt;docs it will run the command.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Wed, 15 Oct 2003 00:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093451#M806643</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-10-15T00:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: creating custom shell commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093452#M806644</link>
      <description>In the standard posix shell you can also use an alias as in&lt;BR /&gt; &lt;BR /&gt;alias "myls=ls -l"&lt;BR /&gt; &lt;BR /&gt;If you put these in your .profile they will be there every time you log in.  &lt;BR /&gt; &lt;BR /&gt;THe reason your commands are not being found is because the directory in which you put them is not specified in the PATH variable.  The system looks throught his variable to find commands you type.  You can look at this variable with "echo $PATH".&lt;BR /&gt; &lt;BR /&gt;You have two choices, you can use the full path to your command when you run them like "/home/me/docs" or you can create a directory called scripts in your home directory and in your .profile do something like "export PATH=$PATH:/home/me/scripts".  Put your scripts in this directory and everything should work.</description>
      <pubDate>Wed, 15 Oct 2003 00:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-custom-shell-commands/m-p/3093452#M806644</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-15T00:27:17Z</dc:date>
    </item>
  </channel>
</rss>

