<?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 Start Shell in background in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088746#M730252</link>
    <description>Thanks everyone! ! I have tried all your suggestions &lt;BR /&gt;But I did not understand why the problem persists</description>
    <pubDate>Mon, 29 Oct 2007 06:31:17 GMT</pubDate>
    <dc:creator>cocoluigi</dc:creator>
    <dc:date>2007-10-29T06:31:17Z</dc:date>
    <item>
      <title>Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088738#M730244</link>
      <description>Hello..&lt;BR /&gt;when I start a shell in background ex: &lt;BR /&gt;nohup myshell.sh &amp;amp;&lt;BR /&gt;return&lt;BR /&gt;[1] + Stopped (tty output) nohup myshell.sh &amp;amp;&lt;BR /&gt;more nohup.out&lt;BR /&gt;Not a terminal&lt;BR /&gt;&lt;BR /&gt;this is my .profile&lt;BR /&gt;&lt;BR /&gt;# @(#)B.11.11_LR &lt;BR /&gt;# Default user .profile file (/usr/bin/sh initialization).&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;if [ "$TERM" = "" ]&lt;BR /&gt;then&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;else&lt;BR /&gt;eval ` tset -s -Q `&lt;BR /&gt;fi&lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;stty hupcl ixon ixoff&lt;BR /&gt;tabs&lt;BR /&gt;&lt;BR /&gt;# Set up the search paths:&lt;BR /&gt;PATH=$PATH:.&lt;BR /&gt;&lt;BR /&gt;# Set up the shell environment:&lt;BR /&gt;set -u&lt;BR /&gt;trap "echo 'logout'" 0&lt;BR /&gt;&lt;BR /&gt;# Set up the shell variables:&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can I solve this problem &lt;BR /&gt;Thanks in winter!!!</description>
      <pubDate>Fri, 19 Oct 2007 06:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088738#M730244</guid>
      <dc:creator>cocoluigi</dc:creator>
      <dc:date>2007-10-19T06:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088739#M730245</link>
      <description>Why are you showing us your .profile? I think we would be more interested in the contents of myshell.sh&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 19 Oct 2007 06:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088739#M730245</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2007-10-19T06:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088740#M730246</link>
      <description>this is content of myshell.sh&lt;BR /&gt;&lt;BR /&gt;#########################&lt;BR /&gt;&lt;BR /&gt;. $HOME/.profile&lt;BR /&gt;sqlplus -S user/user &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;spool query.log   &lt;BR /&gt;@/export/home/oracle/query.sql&lt;BR /&gt;spool off&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;########################</description>
      <pubDate>Fri, 19 Oct 2007 07:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088740#M730246</guid>
      <dc:creator>cocoluigi</dc:creator>
      <dc:date>2007-10-19T07:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088741#M730247</link>
      <description>(I won't comment on the sense of sourcing a .profile in a non-interactive script)&lt;BR /&gt;&lt;BR /&gt;Then the problem is the tset commands in your .profile&lt;BR /&gt;&lt;BR /&gt;Chnage your .profile to look like this:&lt;BR /&gt;&lt;BR /&gt;# @(#)B.11.11_LR &lt;BR /&gt;# Default user .profile file (/usr/bin/sh initialization).&lt;BR /&gt;&lt;BR /&gt;if /usr/bin/tty -s&lt;BR /&gt;then&lt;BR /&gt;# Set up the terminal:&lt;BR /&gt;if [ "$TERM" = "" ]&lt;BR /&gt;then&lt;BR /&gt;eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;else&lt;BR /&gt;eval ` tset -s -Q `&lt;BR /&gt;fi&lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;stty hupcl ixon ixoff&lt;BR /&gt;tabs&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# Set up the search paths:&lt;BR /&gt;PATH=$PATH:.&lt;BR /&gt;&lt;BR /&gt;# Set up the shell environment:&lt;BR /&gt;set -u&lt;BR /&gt;trap "echo 'logout'" 0&lt;BR /&gt;&lt;BR /&gt;# Set up the shell variables:&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2007 08:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088741#M730247</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2007-10-19T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088742#M730248</link>
      <description>Sorry!! the problem persists&lt;BR /&gt;However, many thanks....</description>
      <pubDate>Fri, 19 Oct 2007 09:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088742#M730248</guid>
      <dc:creator>cocoluigi</dc:creator>
      <dc:date>2007-10-19T09:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088743#M730249</link>
      <description>oops sorry...&lt;BR /&gt;&lt;BR /&gt;try replacing&lt;BR /&gt;&lt;BR /&gt;if /usr/bin/tty -s&lt;BR /&gt;&lt;BR /&gt;with &lt;BR /&gt;&lt;BR /&gt;if [ -o interactive ]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 19 Oct 2007 10:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088743#M730249</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2007-10-19T10:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088744#M730250</link>
      <description>&lt;!--!*#--&gt;How about the nesting the test for the TERM variable within the test for interactive or batch mode of operation i.e.&lt;BR /&gt;&lt;BR /&gt;if [ -t ]; then&lt;BR /&gt;  if [ "$TERM" = ""]; then&lt;BR /&gt;     eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;  else&lt;BR /&gt;     eval ` tset -s -Q `&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2007 10:59:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088744#M730250</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-10-19T10:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088745#M730251</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;read Sandman's first line as&lt;BR /&gt;if [ -t 1 ]; then&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Sun, 21 Oct 2007 14:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088745#M730251</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-10-21T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088746#M730252</link>
      <description>Thanks everyone! ! I have tried all your suggestions &lt;BR /&gt;But I did not understand why the problem persists</description>
      <pubDate>Mon, 29 Oct 2007 06:31:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088746#M730252</guid>
      <dc:creator>cocoluigi</dc:creator>
      <dc:date>2007-10-29T06:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088747#M730253</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what about attaching your modified $HOME/.profile ?&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 29 Oct 2007 12:23:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088747#M730253</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-10-29T12:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088748#M730254</link>
      <description>Based on your .profile, you don't need it at all. Everything in it refers to an interactive session and does not setup anything for your database environment. And since your example is just running the script from your current login, running .profile in the script makes no sense. Are you testing this script for a cron job? If so, then the environment you need was setup in /etc/profile. I would not try to source /etc/profile but instead, just add the needed environment commands into your script.</description>
      <pubDate>Mon, 29 Oct 2007 18:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088748#M730254</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-10-29T18:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088749#M730255</link>
      <description>Sorry!!!! &lt;BR /&gt;I had tried option &lt;BR /&gt;-o interactive&lt;BR /&gt;&lt;BR /&gt;Now is OK!!!&lt;BR /&gt;Thanks to all for your help&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2007 09:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088749#M730255</guid>
      <dc:creator>cocoluigi</dc:creator>
      <dc:date>2007-10-30T09:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Start Shell in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088750#M730256</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;nice to hear, that it works now! I think, now is the time for&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 30 Oct 2007 11:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-start-shell-in-background/m-p/4088750#M730256</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-10-30T11:44:26Z</dc:date>
    </item>
  </channel>
</rss>

