<?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: Asynchronous/synchronous commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456625#M12698</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to start in background (posix/korn shell):&lt;BR /&gt;command &amp;amp;&lt;BR /&gt;Waiting for terminating of command:&lt;BR /&gt;wait&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Mon, 23 Oct 2000 13:20:24 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2000-10-23T13:20:24Z</dc:date>
    <item>
      <title>Asynchronous/synchronous commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456624#M12697</link>
      <description>Sorry if this group is not the correct but I have not found any shell group.&lt;BR /&gt;&lt;BR /&gt;I am interested in execute synchronous commands from kshell-script in a asynchronuos  mode. I mean, launch them ( with exec?) wait a time a see the results. I know the system  calls mechanisms (fork , wait) but I do not know how to make it in a shell script languaje&lt;BR /&gt;&lt;BR /&gt;Any idea? Thanks in advance</description>
      <pubDate>Mon, 23 Oct 2000 13:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456624#M12697</guid>
      <dc:creator>Raul del Castillo</dc:creator>
      <dc:date>2000-10-23T13:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous/synchronous commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456625#M12698</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to start in background (posix/korn shell):&lt;BR /&gt;command &amp;amp;&lt;BR /&gt;Waiting for terminating of command:&lt;BR /&gt;wait&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 23 Oct 2000 13:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456625#M12698</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-23T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous/synchronous commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456626#M12699</link>
      <description>Hi, again,&lt;BR /&gt;&lt;BR /&gt;in korn shell you can also do async reading:&lt;BR /&gt;&lt;BR /&gt;command |&amp;amp;&lt;BR /&gt;&lt;BR /&gt;read -p line&lt;BR /&gt;&lt;BR /&gt;The |&amp;amp; statement executes the command in background.&lt;BR /&gt;With read -p you can read the output of the command.&lt;BR /&gt;Typically you can do this in a loop:&lt;BR /&gt;while read -p line&lt;BR /&gt;do&lt;BR /&gt;# do anything with the var $line&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 23 Oct 2000 13:32:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456626#M12699</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-10-23T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous/synchronous commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456627#M12700</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you did an 'exec' of a command or of another script, within a script; or an exec of a script or a command at a shell prompt; you will never execute anything afterwards.  A successful call to exec() does not return because the new program overwrites the calling program.&lt;BR /&gt;&lt;BR /&gt;As Andreas said, start the process in the background and wait as necessary.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Oct 2000 13:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asynchronous-synchronous-commands/m-p/2456627#M12700</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-23T13:39:12Z</dc:date>
    </item>
  </channel>
</rss>

