<?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 HP forward mail function in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984680#M420640</link>
    <description>Hi,&lt;BR /&gt;I wrote a script for mail forwarding. Now I need a fuctionality like lockfile (linux) for HPUX. That function waits until one process is done, before another one can start.&lt;BR /&gt;Does anyone have any idea?&lt;BR /&gt;Thanks for any help&lt;BR /&gt;Barbara</description>
    <pubDate>Mon, 12 Jun 2006 05:46:54 GMT</pubDate>
    <dc:creator>Barbara Kramer</dc:creator>
    <dc:date>2006-06-12T05:46:54Z</dc:date>
    <item>
      <title>HP forward mail function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984680#M420640</link>
      <description>Hi,&lt;BR /&gt;I wrote a script for mail forwarding. Now I need a fuctionality like lockfile (linux) for HPUX. That function waits until one process is done, before another one can start.&lt;BR /&gt;Does anyone have any idea?&lt;BR /&gt;Thanks for any help&lt;BR /&gt;Barbara</description>
      <pubDate>Mon, 12 Jun 2006 05:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984680#M420640</guid>
      <dc:creator>Barbara Kramer</dc:creator>
      <dc:date>2006-06-12T05:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: HP forward mail function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984681#M420641</link>
      <description>Barbara,&lt;BR /&gt;&lt;BR /&gt;There are a few ways to accomplish what you want.  Depending on how your script is written, you may be able to take advantage of the 'wait' command.  'wait' waits for background processes (executed with '&amp;amp;') to complete before continuing execution.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;cmd1 &amp;amp;&lt;BR /&gt;cmd2 &amp;amp;&lt;BR /&gt;wait&lt;BR /&gt;cmd3&lt;BR /&gt;&lt;BR /&gt;'cmd1' and 'cmd2' are run in parallel.  'cmd3' won't be executed until 'cmd1' and 'cmd2' have completed.&lt;BR /&gt;&lt;BR /&gt;Or you could simulate a lockfile by having the first process create a temp file, and blocking execution of the second process as long as that lockfile exists.&lt;BR /&gt;&lt;BR /&gt;PCS&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jun 2006 08:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984681#M420641</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-12T08:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: HP forward mail function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984682#M420642</link>
      <description>here is a little something I use to ensure only one sessionis running&lt;BR /&gt;&lt;BR /&gt;# check to ensure there is only one user running this script:&lt;BR /&gt;&lt;BR /&gt;&lt;AT the="" start="" of="" the="" script=""&gt;&lt;/AT&gt;&lt;BR /&gt;MYPID=$$&lt;BR /&gt;print $MYPID &amp;gt; /tmp/pid.lck&lt;BR /&gt;&lt;BR /&gt;if [[ -f /tmp/pid.lck ]]&lt;BR /&gt;then&lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;continue&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;then last command of script rm $MYPID</description>
      <pubDate>Mon, 12 Jun 2006 08:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984682#M420642</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-12T08:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: HP forward mail function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984683#M420643</link>
      <description>Hi,&lt;BR /&gt;the skript worked great !! thanks so much&lt;BR /&gt;smiles&lt;BR /&gt;Barbara</description>
      <pubDate>Mon, 12 Jun 2006 09:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984683#M420643</guid>
      <dc:creator>Barbara Kramer</dc:creator>
      <dc:date>2006-06-12T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: HP forward mail function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984684#M420644</link>
      <description>Just used the solution provided. Thanks again</description>
      <pubDate>Mon, 12 Jun 2006 09:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-forward-mail-function/m-p/4984684#M420644</guid>
      <dc:creator>Barbara Kramer</dc:creator>
      <dc:date>2006-06-12T09:06:22Z</dc:date>
    </item>
  </channel>
</rss>

