Re: [PLUG] Bash: pause running script and continue it in background [FIXED]

2016-10-06 Thread Rich Shepard
On Thu, 6 Oct 2016, Tom wrote: > Nobody mentioned fg command for taking job to foreground yet!? Tom, That's because it was not appropriat for the task. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org

Re: [PLUG] Bash: pause running script and continue it in background [FIXED]

2016-10-06 Thread Tom
Nobody mentioned fg command for taking job to foreground yet!? Summary: Start something in background: ./send-nl.sh & Get job number (1 in this example): jobs Bring job listed as 1 to foreground: fg %1 Kill job 1: kill %1 Yet another way to stop job 1: kill -s 19 %1 Stop any process you own by

Re: [PLUG] Bash: pause running script and continue it in background [FIXED]

2016-10-05 Thread Rich Shepard
On Wed, 5 Oct 2016, Dale Snell wrote: > You don't need anything so baroque. Dave, Michael, Dale: Thank you all. Cherry picking from the offered solutions I found what works. From the directory in which the script started I typed ^z. This paused the running script. Then I typed 'bg' and

Re: [PLUG] Bash: pause running script and continue it in background

2016-10-05 Thread Dale Snell
On Wed, 5 Oct 2016 13:31:30 -0700 (PDT), in message alpine.LNX.2.11.1610051324060.6157@localhost, Rich Shepard wrote: >Seems to me that I should be able to pause the running script > (PID: 10952 pts/0 S+ 0:00 sleep 15) or whatever the PID is when I > pause the script, then run bg 10952 to

Re: [PLUG] Bash: pause running script and continue it in background

2016-10-05 Thread Michael Rasmussen
On Wed, Oct 05, 2016 at 01:31:30PM -0700, Rich Shepard wrote: >Starting a script to run in the background is simple: append '&' to the > command line. When the script runs for a few hours and I forget to start it > in the background (as I did today) I'd like to pause it (using ctrl-z) and >

Re: [PLUG] Bash: pause running script and continue it in background

2016-10-05 Thread David
On 10/05/2016 01:31 PM, Rich Shepard wrote: >Starting a script to run in the background is simple: append '&' to the > command line. When the script runs for a few hours and I forget to start it > in the background (as I did today) I'd like to pause it (using ctrl-z) and > continue running it

[PLUG] Bash: pause running script and continue it in background

2016-10-05 Thread Rich Shepard
Starting a script to run in the background is simple: append '&' to the command line. When the script runs for a few hours and I forget to start it in the background (as I did today) I'd like to pause it (using ctrl-z) and continue running it in the background. My web searches show how to