<?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: .profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157760#M158804</link>
    <description>Start the script with . $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;It is the normal situation that the .profile is not run for crontab scripts.&lt;BR /&gt;&lt;BR /&gt;Another solution might be to have the script run from the crontab of root with:&lt;BR /&gt;su - &lt;USERNAME&gt; -c &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;That way the .profile will run too.&lt;BR /&gt;&lt;BR /&gt;Mind that things like stty and tset might hang or break your script!&lt;/USERNAME&gt;</description>
    <pubDate>Wed, 07 Jan 2004 03:17:07 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2004-01-07T03:17:07Z</dc:date>
    <item>
      <title>.profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157759#M158803</link>
      <description>Hi,&lt;BR /&gt;I have a user which have ksh.&lt;BR /&gt;i want to use crontab to plan a script which need a variable $SCRIPTS_TOP.&lt;BR /&gt;This variable is in .profile (sh) and i don't manage to use it.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jan 2004 03:12:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157759#M158803</guid>
      <dc:creator>Clutier_1</dc:creator>
      <dc:date>2004-01-07T03:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157760#M158804</link>
      <description>Start the script with . $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;It is the normal situation that the .profile is not run for crontab scripts.&lt;BR /&gt;&lt;BR /&gt;Another solution might be to have the script run from the crontab of root with:&lt;BR /&gt;su - &lt;USERNAME&gt; -c &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;That way the .profile will run too.&lt;BR /&gt;&lt;BR /&gt;Mind that things like stty and tset might hang or break your script!&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 07 Jan 2004 03:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157760#M158804</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-01-07T03:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157761#M158805</link>
      <description>if your cron file looks like this&lt;BR /&gt;&lt;BR /&gt;* * * * * export $SCRIPT_TOP=somevalue script_name&lt;BR /&gt; &lt;BR /&gt;You should be OK.</description>
      <pubDate>Wed, 07 Jan 2004 03:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157761#M158805</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-01-07T03:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157762#M158806</link>
      <description>include the env variables which are in .profile to the script.</description>
      <pubDate>Wed, 07 Jan 2004 03:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157762#M158806</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-01-07T03:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157763#M158807</link>
      <description>Sorry, there should have bee a ";" in there (or no "export") as in&lt;BR /&gt; &lt;BR /&gt;* * * * * export $SCRIPT_TOP=somevalue; script_name</description>
      <pubDate>Wed, 07 Jan 2004 03:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157763#M158807</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-01-07T03:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157764#M158808</link>
      <description>Note -- here is some information on how to avoid stty giving error messages when you run your profile in this manner:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=114552" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=114552&lt;/A&gt;</description>
      <pubDate>Thu, 08 Jan 2004 13:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3157764#M158808</guid>
      <dc:creator>Chris Hulihan</dc:creator>
      <dc:date>2004-01-08T13:00:33Z</dc:date>
    </item>
  </channel>
</rss>

