<?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: Problem with scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164147#M897364</link>
    <description>Hi Alan,&lt;BR /&gt;&lt;BR /&gt;Onething you could do is to source in your .profile at the beginning of the script. This will fix in case if these commands are looking at any environmental settings.&lt;BR /&gt;&lt;BR /&gt;. $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;&lt;COMMAND&gt;&lt;BR /&gt;&lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/COMMAND&gt;&lt;/COMMAND&gt;</description>
    <pubDate>Wed, 14 Jan 2004 10:28:59 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-01-14T10:28:59Z</dc:date>
    <item>
      <title>Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164141#M897358</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;When I run commands in scripts they are failing. The same commands (all fully pathed) run without problem if run manually. It seems to be an issue with the environment or something like that.&lt;BR /&gt;Anybody any ideas?</description>
      <pubDate>Wed, 14 Jan 2004 09:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164141#M897358</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2004-01-14T09:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164142#M897359</link>
      <description>Alan,&lt;BR /&gt;&lt;BR /&gt;Can you give us an example?  Post a script?  Is it all scripts?  All commands?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 Jan 2004 09:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164142#M897359</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-01-14T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164143#M897360</link>
      <description>Start at the first line your scripts with :&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;|| or at least the shell you use when executing your scripts.&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;might show what it does when you're examinig the script.&lt;BR /&gt;&lt;BR /&gt;tusc /path/to/programm may give you quiet some info too (if you know what it means.&lt;BR /&gt;&lt;BR /&gt;An example of the script and the error output might be handy.&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Wed, 14 Jan 2004 09:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164143#M897360</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2004-01-14T09:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164144#M897361</link>
      <description>You either need to source your user's .profile to get the PATH info and/or use set -x in the top of the script...&lt;BR /&gt;&lt;BR /&gt;That usu fixes most problems with scripts not running where a command line does.</description>
      <pubDate>Wed, 14 Jan 2004 09:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164144#M897361</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-01-14T09:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164145#M897362</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;It's not all scripts, it's specific to scripts associated with FileNET Software, FileNET have said that the problem seems to be UNIX related. &lt;BR /&gt;&lt;BR /&gt;Here is an example if this is any use thanks.&lt;BR /&gt;&lt;BR /&gt;"#!/bin/sh&lt;BR /&gt;sleep 30&lt;BR /&gt;/fnsw/bin/killfnsw -DAy&lt;BR /&gt;touch /tmp/alantag&lt;BR /&gt;&lt;BR /&gt;sleep 60&lt;BR /&gt;/fnsw/bin/initfnsw -y stop&lt;BR /&gt;sleep 200&lt;BR /&gt;/fnsw/bin/killfnsw -DAy&lt;BR /&gt;sleep 300&lt;BR /&gt;/fnsw/bin/initfnsw -y start"</description>
      <pubDate>Wed, 14 Jan 2004 09:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164145#M897362</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2004-01-14T09:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164146#M897363</link>
      <description>Alan&lt;BR /&gt;&lt;BR /&gt;What errors does the above script produce?&lt;BR /&gt;All I can imagine is command not found, or permission denied, or some application level error. Maybe it's looking for an&lt;BR /&gt;environment variable which is not being exported to the script&amp;gt;&lt;BR /&gt;Do you run it as the same user from a script as you do when running manually?&lt;BR /&gt;&lt;BR /&gt;It would be helpful if you could post sample session output.&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Wed, 14 Jan 2004 09:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164146#M897363</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2004-01-14T09:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164147#M897364</link>
      <description>Hi Alan,&lt;BR /&gt;&lt;BR /&gt;Onething you could do is to source in your .profile at the beginning of the script. This will fix in case if these commands are looking at any environmental settings.&lt;BR /&gt;&lt;BR /&gt;. $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;&lt;COMMAND&gt;&lt;BR /&gt;&lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/COMMAND&gt;&lt;/COMMAND&gt;</description>
      <pubDate>Wed, 14 Jan 2004 10:28:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164147#M897364</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-01-14T10:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164148#M897365</link>
      <description>Thanks Sri,&lt;BR /&gt;&lt;BR /&gt;The .profile entry sorted out the problem. :)</description>
      <pubDate>Thu, 22 Jan 2004 07:08:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-scripts/m-p/3164148#M897365</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2004-01-22T07:08:00Z</dc:date>
    </item>
  </channel>
</rss>

