<?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: how to  set  environment available in script! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077890#M142017</link>
    <description>Leyearn,That PATH is not too long.   It would be nice to see your script but I suspect that you have newlines at the end of each line where you set the PATH so"dm/bin:/opt/graphics/common/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/b" looks like a command.Make sure your PATH doesn't have newlines in it or put "\" at the end of each line.Regards</description>
    <pubDate>Thu, 25 Sep 2003 01:39:35 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2003-09-25T01:39:35Z</dc:date>
    <item>
      <title>how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077889#M142016</link>
      <description>in order to make my script run successfully&lt;BR /&gt;i set the PATH environment available in my script&lt;BR /&gt;&lt;BR /&gt;the following:&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettla&lt;BR /&gt;dm/bin:/opt/graphics/common/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/b&lt;BR /&gt;in:/opt/langtools/bin:/opt/perf/bin:/opt/imake/bin:/opt/hpxt/enware/bin:/opt/hpn&lt;BR /&gt;p//bin:/opt/hparray/bin:/sbin:/home/root&lt;BR /&gt;&lt;BR /&gt;one line can't hold all the items &lt;BR /&gt;when i execute my script(shellx.txt)# ./shellx.txt&lt;BR /&gt;the following error message is produced:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;./shellx.txt[3]: dm/bin:/opt/graphics/common/bin:/usr/bin/X11:/usr/contrib/bin/X&lt;BR /&gt;11:/opt/upgrade/b:  not found.&lt;BR /&gt;./shellx.txt[4]: in:/opt/langtools/bin:/opt/perf/bin:/opt/imake/bin:/opt/hpxt/en&lt;BR /&gt;ware/bin:/opt/hpn:  not found.&lt;BR /&gt;./shellx.txt[5]: p//bin:/opt/hparray/bin:/sbin:/home/root:  not found.&lt;BR /&gt;&lt;BR /&gt;how can set the available correctly?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 01:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077889#M142016</guid>
      <dc:creator>leyearn</dc:creator>
      <dc:date>2003-09-25T01:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077890#M142017</link>
      <description>Leyearn,That PATH is not too long.   It would be nice to see your script but I suspect that you have newlines at the end of each line where you set the PATH so"dm/bin:/opt/graphics/common/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/b" looks like a command.Make sure your PATH doesn't have newlines in it or put "\" at the end of each line.Regards</description>
      <pubDate>Thu, 25 Sep 2003 01:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077890#M142017</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-25T01:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077891#M142018</link>
      <description>In my environment, I prepared a environment source file for running script, and source that file in the beginning of each script, see following:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;  #Env Setting--------- &lt;BR /&gt;  # source the following file to export &lt;BR /&gt;  # all required env variables, such &lt;BR /&gt;  # as PATH, ORACLE_SID, ORACLE_HOME...&lt;BR /&gt;  . /home/oracle/.scriptenv &lt;BR /&gt;...</description>
      <pubDate>Thu, 25 Sep 2003 01:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077891#M142018</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-09-25T01:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077892#M142019</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When editing your script with "vi", in command mode use ":set list" to view where are the new-lines ( will be "marked" with a dollar symbol ).&lt;BR /&gt;&lt;BR /&gt;As mentioned, looks like you have undesirable new lines in your PATH line.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Thu, 25 Sep 2003 02:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077892#M142019</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-25T02:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077893#M142020</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;as Mark said, your problem is probably that you did a copy-paste from another source and included erronous newlines in your script.&lt;BR /&gt;&lt;BR /&gt;However, if you still want to add pathes to an existing PATH variable, all you have to do is:&lt;BR /&gt;&lt;BR /&gt;PATH=$PATH;[your new pathes]&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;FiX&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 02:42:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077893#M142020</guid>
      <dc:creator>F. X. de Montgolfier</dc:creator>
      <dc:date>2003-09-25T02:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077894#M142021</link>
      <description>Hi leyearn,&lt;BR /&gt;You can use:&lt;BR /&gt;export PATH=$PATH:/dir1:/dir2:/dir3&lt;BR /&gt;export PATH=$PATH:/dir4:/dir4:/dir6&lt;BR /&gt;...&lt;BR /&gt;to assign more path!&lt;BR /&gt;As I know, the maximum length for POSIX shell variable is 128 characters (maybe), so the strings above 128 will be truncated!&lt;BR /&gt;&lt;BR /&gt;-ux</description>
      <pubDate>Thu, 25 Sep 2003 03:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077894#M142021</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-09-25T03:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set  environment available in script!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077895#M142022</link>
      <description>From the error, it says that error in line 3, where teh dm/bin line starts. just append a \ at the end of the previous line or do the exports in different line&lt;BR /&gt;1. PATH=/usr/sbin:... till /usr/contrib/bin&lt;BR /&gt;in the nest line&lt;BR /&gt;2. PATH=$PATH:/opt/nettladm and so on..&lt;BR /&gt;&lt;BR /&gt;This will solve your problem.</description>
      <pubDate>Thu, 25 Sep 2003 06:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-environment-available-in-script/m-p/3077895#M142022</guid>
      <dc:creator>Bhuvaneswari Selvaraj</dc:creator>
      <dc:date>2003-09-25T06:29:35Z</dc:date>
    </item>
  </channel>
</rss>

