<?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: My weekly scripting problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943847#M114271</link>
    <description>&lt;BR /&gt;We add the following line to our /etc/inittab file so dsmc starts automatically when the system boots and will respawn if it dies unexpectedly, it seems to work pretty well for us. All of our HP systems are setup this way.&lt;BR /&gt;&lt;BR /&gt;adsm::respawn:/opt/tivoli/tsm/client/ba/bin/dsmc sched &amp;gt;/dev/null 2&amp;gt;&amp;amp;1</description>
    <pubDate>Mon, 07 Apr 2003 12:27:28 GMT</pubDate>
    <dc:creator>Justin Willoughby</dc:creator>
    <dc:date>2003-04-07T12:27:28Z</dc:date>
    <item>
      <title>My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943836#M114260</link>
      <description>I've had a problem that has been annoying me for some time. We have tivoli centralised backups and use the dsmc sched tool to schedule when thery run. I have a generic startup script which works on sun servers but not HP's and also works when you simply run from the command line, however not on sytem boot. I think it has something to do with trying to background the process, as if you run it without backgrounding it would just hang there telling you how long till next backup. Anyway here is the string we use within the script any ideas would be appreciated:-&lt;BR /&gt;&lt;BR /&gt;/usr/bin/dsmc schedule 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;/usr/bin</description>
      <pubDate>Fri, 04 Apr 2003 09:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943836#M114260</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2003-04-04T09:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943837#M114261</link>
      <description>Adam,&lt;BR /&gt;&lt;BR /&gt;Does it work if you nohup it?&lt;BR /&gt;&lt;BR /&gt;As in:&lt;BR /&gt;&lt;BR /&gt;nohup /usr/bin/dsmc schedule 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 04 Apr 2003 09:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943837#M114261</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-04T09:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943838#M114262</link>
      <description>Usually such things get terminated by SIGHUP, unless you use nohup in your script.&lt;BR /&gt;&lt;BR /&gt;However it may also be a problem that the startup scripts don't get a controlling tty from init. Try to run the beast from cron... if that works then this should not be the problem.&lt;BR /&gt;&lt;BR /&gt;And you should redirect stdin also.&lt;BR /&gt;&lt;BR /&gt;So the 1st guess would be:&lt;BR /&gt;&lt;BR /&gt;# nohup /usr/bin/dsmc schedule /dev/null 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Fri, 04 Apr 2003 09:15:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943838#M114262</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-04-04T09:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943839#M114263</link>
      <description>I think you may both be on the right lines with nohup, however still not starting after re-boot. I have also tried running from cron and failing aswell.</description>
      <pubDate>Fri, 04 Apr 2003 10:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943839#M114263</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2003-04-04T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943840#M114264</link>
      <description>I think this problem has something to do with the respawning of the process during system startup.&lt;BR /&gt;I would try to put&lt;BR /&gt;# /usr/bin/at now + 1 minute &amp;lt; /usr/bin/dsmc schedule 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;without the final "backgrounding" &amp;amp; &lt;BR /&gt;&lt;BR /&gt;Hopely this will activate the process at the right time (after boot)&lt;BR /&gt;&lt;BR /&gt;HTH &lt;BR /&gt;&lt;BR /&gt;Enrico</description>
      <pubDate>Fri, 04 Apr 2003 10:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943840#M114264</guid>
      <dc:creator>enrico.nic</dc:creator>
      <dc:date>2003-04-04T10:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943841#M114265</link>
      <description>Adam,&lt;BR /&gt;&lt;BR /&gt;perhaps it's related to the environment...there's a fairly limited environment set up when the startup scripts are called - try typing this at the command prompt:&lt;BR /&gt;&lt;BR /&gt;env | sort &amp;gt; /tmp/env_in_interactive_shell&lt;BR /&gt;&lt;BR /&gt;and then add this to your startup script:&lt;BR /&gt;&lt;BR /&gt;env | sort &amp;gt; /tmp/env_in_startup_shell&lt;BR /&gt;&lt;BR /&gt;Now reboot to allow the script to run in the standard way, and then compare the files using diff&lt;BR /&gt;&lt;BR /&gt;Anything stand out?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 04 Apr 2003 10:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943841#M114265</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-04T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943842#M114266</link>
      <description>Also you should check your not getting any errors from the command by sending output to a file, NOT /dev/null :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/bin/dsmc schedule 1&amp;gt;/tmp/dmsc.log 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 04 Apr 2003 10:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943842#M114266</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-04T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943843#M114267</link>
      <description>Hi Adam,&lt;BR /&gt;Apart from difference of user(?) and environment when starting the script at boot time and running it from the command line, there is perhaps another thing: is the execution depending on something available/being up and running that is perhaps not present at boot time?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;john k.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Apr 2003 11:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943843#M114267</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-04-04T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943844#M114268</link>
      <description>Add "set -x" at the beginning of the script and "ps -ef | grep dsmc" (or something similar) at the end, and, as others suggested, run the script from at(1) or batch(1), i.e.&lt;BR /&gt;&lt;BR /&gt;echo /path/to/your/script | batch&lt;BR /&gt;&lt;BR /&gt;Next check you e-mail for the output from the job. This should tell you 1) if the script makes it untill the invocation of the dsmc command, 2) whether the dsmc command is started and 3) whether the dsmc command was still running at the end of the script. This should give you a clue as to the cause of the failure.</description>
      <pubDate>Fri, 04 Apr 2003 13:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943844#M114268</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-04-04T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943845#M114269</link>
      <description>I suggest you create a script for   your startup command.&lt;BR /&gt;&lt;BR /&gt;/usr/bin/dsmc schedule 1&amp;gt;/tmp/dmsc.log 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;And use the system auto startup/shutdown script to call this script.  See if it works.</description>
      <pubDate>Fri, 04 Apr 2003 18:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943845#M114269</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2003-04-04T18:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943846#M114270</link>
      <description>this is how I fixed your problem.&lt;BR /&gt;&lt;BR /&gt;in the /sbin/init.d/adsm startup file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;under the &lt;BR /&gt;&lt;BR /&gt;start)&lt;BR /&gt;nohup /usr/adsm/dsmc sched &amp;gt; /var/adm/syslog/adsm.log 2&amp;gt;&amp;amp;1 &amp;amp;</description>
      <pubDate>Fri, 04 Apr 2003 18:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943846#M114270</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-04-04T18:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943847#M114271</link>
      <description>&lt;BR /&gt;We add the following line to our /etc/inittab file so dsmc starts automatically when the system boots and will respawn if it dies unexpectedly, it seems to work pretty well for us. All of our HP systems are setup this way.&lt;BR /&gt;&lt;BR /&gt;adsm::respawn:/opt/tivoli/tsm/client/ba/bin/dsmc sched &amp;gt;/dev/null 2&amp;gt;&amp;amp;1</description>
      <pubDate>Mon, 07 Apr 2003 12:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943847#M114271</guid>
      <dc:creator>Justin Willoughby</dc:creator>
      <dc:date>2003-04-07T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: My weekly scripting problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943848#M114272</link>
      <description>Thanks guys much appreciated, Donnys string did resolve the problem!</description>
      <pubDate>Mon, 07 Apr 2003 15:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/my-weekly-scripting-problem/m-p/2943848#M114272</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2003-04-07T15:08:46Z</dc:date>
    </item>
  </channel>
</rss>

