<?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: Moving a Foreground Process to the Background in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723675#M945656</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;stty -a to see what your current settings are&lt;BR /&gt;&lt;BR /&gt;To set to another parameter just&lt;BR /&gt;&lt;BR /&gt;stty &lt;OBJECT&gt;&lt;PARAM /&gt; &lt;KEYSTROKE&gt;&lt;BR /&gt;&lt;BR /&gt;To set a new value permanently add it to your .profile in your home directory&lt;BR /&gt;&lt;BR /&gt;Here's what mine looks like&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal: &lt;BR /&gt;if [ "$TERM" = "" ] &lt;BR /&gt;then &lt;BR /&gt;eval ` tset -s -Q -m ':?hp' ` &lt;BR /&gt;else &lt;BR /&gt;eval ` tset -s -Q ` &lt;BR /&gt;fi &lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D" &lt;BR /&gt;stty hupcl ixon ixoff &lt;BR /&gt;tabs &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;&lt;/KEYSTROKE&gt;&lt;/OBJECT&gt;</description>
    <pubDate>Tue, 14 May 2002 16:38:07 GMT</pubDate>
    <dc:creator>steven Burgess_2</dc:creator>
    <dc:date>2002-05-14T16:38:07Z</dc:date>
    <item>
      <title>Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723671#M945652</link>
      <description>Hello All,&lt;BR /&gt;           In addition to running a process in the background using &amp;amp;, you can move a foreground process into the background. My script book says that in order to do so, you press the Ctrl+Z key and see the following (the ^Z is your Ctrl+Z key being echoed).&lt;BR /&gt;^Z[1] + Stopped (SIGTSTP)  &lt;PROCESS name=""&gt;&lt;BR /&gt;&lt;BR /&gt;PROBLEM: Pressing CTRL+Z Doesn't work for me! &lt;BR /&gt;&lt;BR /&gt;I was wondering if it depends on the shell. &lt;BR /&gt;&lt;BR /&gt;Lemme know!&lt;/PROCESS&gt;</description>
      <pubDate>Tue, 14 May 2002 16:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723671#M945652</guid>
      <dc:creator>Mark Blonde</dc:creator>
      <dc:date>2002-05-14T16:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723672#M945653</link>
      <description>Hi Mark:&lt;BR /&gt;&lt;BR /&gt;Use these commands:&lt;BR /&gt;&lt;BR /&gt;# fg [job] - bringing forground&lt;BR /&gt;# bg [job] - putting background&lt;BR /&gt;&lt;BR /&gt;See man pages for more details. All these functions are shell specific.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Tue, 14 May 2002 16:19:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723672#M945653</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-14T16:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723673#M945654</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;I believe it depends on your stty settings (do a man on stty).  I have yet to figure out what needs to be set - if I do, I'll let you know.  And, yes, it is dependant on the shell.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 14 May 2002 16:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723673#M945654</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-14T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723674#M945655</link>
      <description>Hi Mark&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;do a stty | grep Z to know what is it set to . or may be try changing the shell .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 14 May 2002 16:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723674#M945655</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-14T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723675#M945656</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;stty -a to see what your current settings are&lt;BR /&gt;&lt;BR /&gt;To set to another parameter just&lt;BR /&gt;&lt;BR /&gt;stty &lt;OBJECT&gt;&lt;PARAM /&gt; &lt;KEYSTROKE&gt;&lt;BR /&gt;&lt;BR /&gt;To set a new value permanently add it to your .profile in your home directory&lt;BR /&gt;&lt;BR /&gt;Here's what mine looks like&lt;BR /&gt;&lt;BR /&gt;# Set up the terminal: &lt;BR /&gt;if [ "$TERM" = "" ] &lt;BR /&gt;then &lt;BR /&gt;eval ` tset -s -Q -m ':?hp' ` &lt;BR /&gt;else &lt;BR /&gt;eval ` tset -s -Q ` &lt;BR /&gt;fi &lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D" &lt;BR /&gt;stty hupcl ixon ixoff &lt;BR /&gt;tabs &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;&lt;/KEYSTROKE&gt;&lt;/OBJECT&gt;</description>
      <pubDate>Tue, 14 May 2002 16:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723675#M945656</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-14T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723676#M945657</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;On my system, stty shows:&lt;BR /&gt;stty&lt;BR /&gt;speed 9600 baud; evenp hupcl&lt;BR /&gt;intr = ^C; erase = ^H; kill = ^U;&lt;BR /&gt;eol2 = ^@; swtch = ^@;&lt;BR /&gt;susp = ^Z; dsusp = ^Y;&lt;BR /&gt;werase = ^@; lnext = ^V;&lt;BR /&gt;-inpck -istrip icrnl -ixany ixoff onlcr&lt;BR /&gt;-iexten echo echoe echok&lt;BR /&gt;-echoctl -echoke&lt;BR /&gt;&lt;BR /&gt;This leads me to believe that we're after the suspend character.  However, the following test:&lt;BR /&gt;$ xclock -digital -update 1&lt;BR /&gt;(I pressed ctrl-Z here)&lt;BR /&gt;[1] + Stopped                  xclock -digital -update 1&lt;BR /&gt;$&lt;BR /&gt;stops (or suspends) the clock. I would expect to be able to do a ctrl-Y to get it back but that doesn't work.  I had to use Shiju's suggestion to bring it back to the foreground - where it resumed running.&lt;BR /&gt;&lt;BR /&gt;Not much help, I'm afraid.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 14 May 2002 16:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723676#M945657</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-14T16:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723677#M945658</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;your shell has to be set up correctly to be able to suspend a running job. As the others mentioned check your stty settings. Of course you could set another Key than Ctrl-Z but this is not reconmendet. This can be done in your .profile.&lt;BR /&gt;&lt;BR /&gt;After suspending a job you have to put it in background (bg) to keep it running. A suspended job is holded.&lt;BR /&gt;&lt;BR /&gt;You can have several jobs running in background, which you can check with jobs.&lt;BR /&gt;&lt;BR /&gt;To put one of these jobs in foreground just use fg %n where n is the number of the backgroundjob as shown with jobs.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Wed, 15 May 2002 05:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723677#M945658</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2002-05-15T05:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Moving a Foreground Process to the Background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723678#M945659</link>
      <description>I am using the Korn shell (ksh) and I just did &lt;BR /&gt;&lt;BR /&gt;&amp;gt; stty -a&lt;BR /&gt;&lt;BR /&gt;to list the setup. I found that susp was undef. So I then typed&lt;BR /&gt;&lt;BR /&gt;&amp;gt; stty susp ^Z&lt;BR /&gt;&lt;BR /&gt;Now stty -a shows the susp defined as a control Z (^Z).&lt;BR /&gt;&lt;BR /&gt;I then started a long find command.&lt;BR /&gt;I was then able to hit ctrl z and it suspended the job. With bg %1 I was able to put it in the background and with fg %1 brought it back.&lt;BR /&gt;&lt;BR /&gt;You should look at your .profile and see if stty sets are made and if not you may want to add susp ^Z to set suspend.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 May 2002 17:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-a-foreground-process-to-the-background/m-p/2723678#M945659</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2002-05-15T17:26:12Z</dc:date>
    </item>
  </channel>
</rss>

