<?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: Running a command Simultaniousely. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059661#M305763</link>
    <description>&amp;gt;And the important condition with my command is, the second instance should fail, pointing that another instance of the command is running&lt;BR /&gt;&lt;BR /&gt;Then you will have to modify your command to detect this.  Create a lock file with the PID of the first in a file?  Using $! after you background a command will give its PID.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(the time lag for the command is almost non-existent)&lt;BR /&gt;&lt;BR /&gt;What are you trying to do, write a test case?&lt;BR /&gt;Or do real work?</description>
    <pubDate>Fri, 24 Aug 2007 03:05:25 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-08-24T03:05:25Z</dc:date>
    <item>
      <title>Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059657#M305759</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I have a peculiar requirement.&lt;BR /&gt;I want to run a command, from within a script.&lt;BR /&gt;But, the catch is to run two instances of the same command, simultaniousely.&lt;BR /&gt;How can i do this ??&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ramesh</description>
      <pubDate>Fri, 24 Aug 2007 02:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059657#M305759</guid>
      <dc:creator>Ramesh.K.R.</dc:creator>
      <dc:date>2007-08-24T02:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059658#M305760</link>
      <description>You put them in the background:&lt;BR /&gt;command &amp;amp;&lt;BR /&gt;command &amp;amp;&lt;BR /&gt;wait  # waits for both</description>
      <pubDate>Fri, 24 Aug 2007 02:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059658#M305760</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T02:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059659#M305761</link>
      <description>You can try to run both commands into background: &lt;BR /&gt;&lt;BR /&gt;command &amp;amp;&lt;BR /&gt;command &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 24 Aug 2007 02:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059659#M305761</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-08-24T02:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059660#M305762</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have already tried this ...&lt;BR /&gt;&lt;BR /&gt;Sorry, i forgot to add ome more point, this perticular command dosen't take any time to execute ..... !!! &lt;BR /&gt;And the important condition with my command is, the secand instance should fail, pointing that another instance of the command is running ..&lt;BR /&gt;(the time lag for the command is almost non-existeant)&lt;BR /&gt;&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2007 02:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059660#M305762</guid>
      <dc:creator>Ramesh.K.R.</dc:creator>
      <dc:date>2007-08-24T02:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059661#M305763</link>
      <description>&amp;gt;And the important condition with my command is, the second instance should fail, pointing that another instance of the command is running&lt;BR /&gt;&lt;BR /&gt;Then you will have to modify your command to detect this.  Create a lock file with the PID of the first in a file?  Using $! after you background a command will give its PID.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(the time lag for the command is almost non-existent)&lt;BR /&gt;&lt;BR /&gt;What are you trying to do, write a test case?&lt;BR /&gt;Or do real work?</description>
      <pubDate>Fri, 24 Aug 2007 03:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059661#M305763</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T03:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059662#M305764</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Its a TeMIP (OV Product) fcl command.&lt;BR /&gt;&lt;BR /&gt;The command itself has a in-built mechanism to look for running proceses. It fails, if it detects the command running. But, the problem is, it dosen't time to execute &amp;amp; come out ...&lt;BR /&gt;But, we have to produce a test case scenario for this ..&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ramesh.K.R.&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2007 04:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059662#M305764</guid>
      <dc:creator>Ramesh.K.R.</dc:creator>
      <dc:date>2007-08-24T04:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running a command Simultaniousely.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059663#M305765</link>
      <description>&lt;!--!*#--&gt;&amp;gt;we have to produce a test case scenario for this&lt;BR /&gt;&lt;BR /&gt;Then try a wrapper around your fcl.&lt;BR /&gt;In the wrapper, you will spin in a loop checking to see if a file exists.  If it does, then execute fcl.&lt;BR /&gt;# wait for signal-file&lt;BR /&gt;while [ ! -f signal-file ]; do&lt;BR /&gt;   : nothing here to see&lt;BR /&gt;done&lt;BR /&gt;fcl ...&lt;BR /&gt;&lt;BR /&gt;Then do:&lt;BR /&gt;wrapper-command &amp;amp;&lt;BR /&gt;wrapper-command &amp;amp;&lt;BR /&gt;sleep 5  # make them work up a sweat&lt;BR /&gt;touch signal-file&lt;BR /&gt;&lt;BR /&gt;Both wrappers should start up fcl about the same time.</description>
      <pubDate>Fri, 24 Aug 2007 04:52:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-command-simultaniousely/m-p/4059663#M305765</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T04:52:35Z</dc:date>
    </item>
  </channel>
</rss>

