<?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: omniback post-exec script creates many defunct processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966374#M815136</link>
    <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;That attachment didn't work... can you post it again as plain text.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Tue, 06 May 2003 09:06:49 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2003-05-06T09:06:49Z</dc:date>
    <item>
      <title>omniback post-exec script creates many defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966371#M815133</link>
      <description>Hi pals,&lt;BR /&gt;When I run a script to start my application on a term(hpterm, xterm, dtterm..) or if I put this script in crontab and schedule to run, my application runs normal.&lt;BR /&gt;But if I put the same script as part of omniback backup's post-exec script, my scripts starts my application but with many defunct processes. This causes many problems later.&lt;BR /&gt;How can I avoid this? And I still need to use omniback backup's post-exec feature, to automate starting of my application soon after backup is completed.&lt;BR /&gt;&lt;BR /&gt;thx in advance,&lt;BR /&gt;Ravi</description>
      <pubDate>Tue, 06 May 2003 07:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966371#M815133</guid>
      <dc:creator>RAVI B. HIREMATH</dc:creator>
      <dc:date>2003-05-06T07:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: omniback post-exec script creates many defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966372#M815134</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There may be problems with the enviroment when running from OmniBack. Is it possible to attach an example of the script and the post_exec command.</description>
      <pubDate>Tue, 06 May 2003 07:50:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966372#M815134</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-05-06T07:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: omniback post-exec script creates many defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966373#M815135</link>
      <description>Here are the scripts attached. Post-exec script is "/opt/omni/lbin/start_omc". Hope now&lt;BR /&gt;there will be more clues....</description>
      <pubDate>Tue, 06 May 2003 08:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966373#M815135</guid>
      <dc:creator>RAVI B. HIREMATH</dc:creator>
      <dc:date>2003-05-06T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: omniback post-exec script creates many defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966374#M815136</link>
      <description>Ravi,&lt;BR /&gt;&lt;BR /&gt;That attachment didn't work... can you post it again as plain text.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 06 May 2003 09:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966374#M815136</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-05-06T09:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: omniback post-exec script creates many defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966375#M815137</link>
      <description>I don't know why that attachment is not working. Here are the scripts text:&lt;BR /&gt;============= post-exec(/opt/omni/lbin/start_omc)====&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# Stop OMC Applications and Oracle&lt;BR /&gt;&lt;BR /&gt;su - root -c '/etc/opt/OMC/share/conf/omc_start_after_offline_backup.sh'&lt;BR /&gt;============ /etc/.....omc_start_after...p.sh =====&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# Script backup off_line : OMC Application&lt;BR /&gt;# Autor : Ravi B. Hiremath;&lt;BR /&gt;# Created Date: 25th Feb 2003&lt;BR /&gt;&lt;BR /&gt;. /opt/OMC/util/omcenv.ksh&lt;BR /&gt;&lt;BR /&gt;# Message function to be displayed before OMC application shutdown&lt;BR /&gt;MESSAGE1 () &lt;BR /&gt; {&lt;BR /&gt;echo "OMC Application Offline backup is complete. OMC is now available." &amp;gt; /tmp/mensagem&lt;BR /&gt;echo "You can start using \"omcui\" sessions." &amp;gt;&amp;gt; /tmp/mensagem&lt;BR /&gt;&lt;BR /&gt;# Display the message to all the terms&lt;BR /&gt;/usr/sbin/wall  &amp;lt; /tmp/mensagem&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;post_backup_startup ()&lt;BR /&gt;{&lt;BR /&gt;/etc/opt/OMC/share/conf/oracle_start&lt;BR /&gt;sleep 30&lt;BR /&gt;omcstart&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;# Start of script&lt;BR /&gt;&lt;BR /&gt;post_backup_startup&lt;BR /&gt;MESSAGE1&lt;BR /&gt;============= /etc/..../oracle_start =============&lt;BR /&gt;# This script is to shutdown the oracle application&lt;BR /&gt;# Author : Ravi B. Hiremath&lt;BR /&gt;# Created on : 25th Feb 2003&lt;BR /&gt;ORACLE_HOME=${ORACLE_HOME:=/opt/app/oracle/product/8.1.7}&lt;BR /&gt;echo "start"&lt;BR /&gt;su - oracle -c '&lt;BR /&gt;svrmgrl &amp;lt;&amp;lt; ENDL&lt;BR /&gt;connect internal;&lt;BR /&gt;startup;&lt;BR /&gt;exit;&lt;BR /&gt;ENDL&lt;BR /&gt;lsnrctl start;  '&lt;BR /&gt;===============================================</description>
      <pubDate>Tue, 06 May 2003 09:19:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966375#M815137</guid>
      <dc:creator>RAVI B. HIREMATH</dc:creator>
      <dc:date>2003-05-06T09:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: omniback post-exec script creates many defunct processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966376#M815138</link>
      <description>Your fundamental problems are the "su - user" commands vs. simply "su user". I know you think that you want to emulate the users environment by using his .profile but you really don't want to do this. The problem is that the .profiles contain commands like tset, tabs, stty , ... that expect an interactive environment - which you ain't. You could surround all the commands in .profile with &lt;BR /&gt;if [ - t 0 ]&lt;BR /&gt;  then&lt;BR /&gt;&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;but a better way is to create a file, e.g. /usr/local/bin/oracleenv.sh and let oracle's .profile AND your OB2 script source it like this:&lt;BR /&gt;. /usr/local/bin/oracleenv.sh and then NOT use the "-" in your su command.&lt;BR /&gt;&lt;BR /&gt;Make sure that your sourced enviroment script does not contain an exit or return or the foreground process (shell) will exit.&lt;BR /&gt;&lt;BR /&gt;I don't think that you will need to use it, but a few processes may also need to use the OB2 detach command to close file descriptors. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 May 2003 12:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omniback-post-exec-script-creates-many-defunct-processes/m-p/2966376#M815138</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-05-06T12:55:58Z</dc:date>
    </item>
  </channel>
</rss>

