<?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: Scripts in HPE 9000 and HPE e3000 Servers</title>
    <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455831#M976</link>
    <description>In addition to the PATH, there migt be other environmental variables required by the script (ORACLE_HOME, etc.)  The simplest way to be certain that you have everything required for a script to run is to set the environment to mimic the user's standard login.  Simply source the /etc/profile and users .profile (or .cshrc) files:&lt;BR /&gt;&lt;BR /&gt;. /etc/profile&lt;BR /&gt;. /home/&lt;USER&gt;/.profile&lt;/USER&gt;</description>
    <pubDate>Mon, 23 Oct 2000 18:14:33 GMT</pubDate>
    <dc:creator>Alan Riggs</dc:creator>
    <dc:date>2000-10-23T18:14:33Z</dc:date>
    <item>
      <title>Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455825#M970</link>
      <description>When I run a script from the command line the script runs fine. If I run the script from cron it does not work. Any suggestions??</description>
      <pubDate>Thu, 19 Oct 2000 21:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455825#M970</guid>
      <dc:creator>David McCallum</dc:creator>
      <dc:date>2000-10-19T21:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455826#M971</link>
      <description>What is the script doing David?&lt;BR /&gt;&lt;BR /&gt;I've had this problem sometimes when environment variables were different between the regular login shell and whatever shell runs for cron.&lt;BR /&gt;&lt;BR /&gt;If this is the case, you may need to initialize/export the variables at the beginning of your script.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Thu, 19 Oct 2000 21:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455826#M971</guid>
      <dc:creator>Tim Medford</dc:creator>
      <dc:date>2000-10-19T21:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455827#M972</link>
      <description>The most common issue with cron jobs is that .profile is NOT invoked and therefore the $PATH environment variable has not been extended with the additional directories that you use day in and day out from the command line.  You can either extend the $PATH from within your cron script (don't forget to export it) or you can use direct references to all the commands used within the script.</description>
      <pubDate>Fri, 20 Oct 2000 04:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455827#M972</guid>
      <dc:creator>Tim Malnati</dc:creator>
      <dc:date>2000-10-20T04:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455828#M973</link>
      <description>This could happen due to insufficient execute permission also. But most of the time it happens due to .profile only. You can also execute the script and capture the screen output using :&lt;BR /&gt;&lt;BR /&gt;For e.g:&lt;BR /&gt;# script /tmp/test.out&lt;BR /&gt;# ksh -x test.ksh&lt;BR /&gt;&lt;BR /&gt;This helps us to find out where exactly problem occurs.&lt;BR /&gt;Have a nice day.&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Oct 2000 18:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455828#M973</guid>
      <dc:creator>Selvaraj</dc:creator>
      <dc:date>2000-10-20T18:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455829#M974</link>
      <description>Please check if the user has cron allow permissions and export PATH HOME and ENV settings in your .profile. The script should also have (#!/usr/bin/sh) depending on the shell that it is written/runs with.</description>
      <pubDate>Mon, 23 Oct 2000 08:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455829#M974</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-10-23T08:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455830#M975</link>
      <description>The PATH is a frequent cause of this issue. Goes back to the ENV not being set. &lt;BR /&gt;&lt;BR /&gt;Can hard code the PATH into the commands or set a PATH env variable in the script</description>
      <pubDate>Mon, 23 Oct 2000 13:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455830#M975</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-10-23T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455831#M976</link>
      <description>In addition to the PATH, there migt be other environmental variables required by the script (ORACLE_HOME, etc.)  The simplest way to be certain that you have everything required for a script to run is to set the environment to mimic the user's standard login.  Simply source the /etc/profile and users .profile (or .cshrc) files:&lt;BR /&gt;&lt;BR /&gt;. /etc/profile&lt;BR /&gt;. /home/&lt;USER&gt;/.profile&lt;/USER&gt;</description>
      <pubDate>Mon, 23 Oct 2000 18:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455831#M976</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-10-23T18:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts</title>
      <link>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455832#M977</link>
      <description>The resolve to my problem was this. I am kicking the process off from the root cron and then switching the user environment to run the scritp.&lt;BR /&gt;&lt;BR /&gt;cron entry:&lt;BR /&gt;&lt;BR /&gt;IE: /usr/bin/su - username -c "script path"&lt;BR /&gt;&lt;BR /&gt;Thanks to all those who gave answers in this matter.</description>
      <pubDate>Thu, 09 Nov 2000 21:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-9000-and-hpe-e3000-servers/scripts/m-p/2455832#M977</guid>
      <dc:creator>David McCallum</dc:creator>
      <dc:date>2000-11-09T21:03:49Z</dc:date>
    </item>
  </channel>
</rss>

