<?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: MANPATH: Undefined variable. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778388#M76652</link>
    <description>Try this&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su - rvs -c "rm /home/rvs/arcdir/rlrudump.log" &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Aug 2002 10:53:04 GMT</pubDate>
    <dc:creator>Rainer von Bongartz</dc:creator>
    <dc:date>2002-08-02T10:53:04Z</dc:date>
    <item>
      <title>MANPATH: Undefined variable.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778387#M76651</link>
      <description>Hi,&lt;BR /&gt;as root user I try to start a script via cron.&lt;BR /&gt;In this script a command should be executed by another user. For this case it includes a "su"-command:&lt;BR /&gt;su - rvs -c "rm /home/rvs/arcdir/rlrudump.log"&lt;BR /&gt;&lt;BR /&gt;This does not work. I get an error message:&lt;BR /&gt;MANPATH: Undefined variable.&lt;BR /&gt;&lt;BR /&gt;If I use this scripts directly (without cron) everything works fine.&lt;BR /&gt;What to do?&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 10:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778387#M76651</guid>
      <dc:creator>Thamm</dc:creator>
      <dc:date>2002-08-02T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: MANPATH: Undefined variable.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778388#M76652</link>
      <description>Try this&lt;BR /&gt;&lt;BR /&gt;/usr/bin/su - rvs -c "rm /home/rvs/arcdir/rlrudump.log" &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 10:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778388#M76652</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2002-08-02T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: MANPATH: Undefined variable.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778389#M76653</link>
      <description>First, since you're root to start with, why do you need to do an su just to remove a log?  Second, cron has a very minimal environment set up when it runs scripts.  Use full path names or set a PATH variable or source a profile and see if that makes a difference.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 02 Aug 2002 10:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778389#M76653</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-08-02T10:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: MANPATH: Undefined variable.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778390#M76654</link>
      <description>Hiya,&lt;BR /&gt;&lt;BR /&gt;Try using su - rvs -c "/usr/bin/rm /home/rvs/arcdir/rlrudump.log" &lt;BR /&gt;&lt;BR /&gt;But I agree with the lack of need to su - rvs. You should not need it.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;James</description>
      <pubDate>Fri, 02 Aug 2002 10:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778390#M76654</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2002-08-02T10:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: MANPATH: Undefined variable.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778391#M76655</link>
      <description>The problem is that the script is looking for the variable MANPATH which is in your environment settings.  The reason why it works with your account is because you have this variable set.  Can you post the entire script so we can see where this is causing you a problem.  If you are not looking at that variable you may be able to place the following command at the beginning of your script:&lt;BR /&gt;&lt;BR /&gt;export MANPATH=/usr/share/man&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Fri, 02 Aug 2002 11:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778391#M76655</guid>
      <dc:creator>Daimian Woznick</dc:creator>
      <dc:date>2002-08-02T11:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: MANPATH: Undefined variable.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778392#M76656</link>
      <description>Hi,&lt;BR /&gt;now the problem is fixed:&lt;BR /&gt;I changed the first line of my script from&lt;BR /&gt;#! /usr/bin/csh&lt;BR /&gt;to&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 11:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/manpath-undefined-variable/m-p/2778392#M76656</guid>
      <dc:creator>Thamm</dc:creator>
      <dc:date>2002-08-02T11:42:37Z</dc:date>
    </item>
  </channel>
</rss>

