job-control Questions
8
Solved
When I press run popular node command line apps (like gulp) and press Ctrl+C in PowerShell, I receive:
Terminate batch job (Y/N)?
Similar to https://superuser.com/questions/35698/how-to-supress-t...
Sixgun asked 22/8, 2016 at 17:25
4
Solved
How can I run a shell script and immediately background it, however keep the ability to inspect its output any time by tailing /tmp/output.txt.
It would be nice if I can foreground the process too ...
Ebberta asked 28/5, 2017 at 0:59
6
Solved
To maximize CPU usage (I run things on a Debian Lenny in EC2) I have a simple script to launch jobs in parallel:
#!/bin/bash
for i in apache-200901*.log; do echo "Processing $i ..."; do_...
Frye asked 15/7, 2009 at 13:44
5
Solved
I have an embedded system, on which I do telnet and then I run an application in background:
./app_name &
Now if I close my terminal and do telnet from other terminal and if I check then I c...
Loganiaceous asked 25/9, 2015 at 11:0
1
When bash is invoked as pid 1 directly through the kernel option init=/bin/bash --login, it will issue something like this before prompting:
bash: cannot set terminal process group (-1): Inappropri...
Osteogenesis asked 12/3, 2022 at 9:25
2
Solved
I have a long-running task that I want to run using a job array on slurm.
The script I am currently using to submit the jobs is:
#!/bin/bash
#SBATCH --output=slurm-%A_%a.out
#SBATCH --array=1-...
Convict asked 21/9, 2019 at 13:41
2
Solved
I want to play a sound after a command finishes, but only if the command took more than a second.
I have this code (copied from https://mcmap.net/q/86798/-how-to-run-a-command-with-a-timeout-so-th...
Subauricular asked 18/6, 2020 at 21:41
1
The following is a simplified version of some code I have:
#!/bin/bash
myfile=file.txt
interactive_command > $myfile &
pid=$!
# Use tail to wait for the file to be populated
while read -r...
Setsukosett asked 14/5, 2019 at 10:48
3
I have a process that goes something like this:
Run a command that generates a bunch of results in a bunch of files
Open a file in vim
Edit one of the results
Background vim, get the next result,...
Anticlockwise asked 8/2, 2019 at 23:38
4
I need to chain two MapReduce jobs. I used JobControl to set job2 as dependent of job1.
It works, output files are created!! But it doesn't stop!
In the shell it remains in this state:
12/09/11 19...
Gelb asked 11/9, 2012 at 17:28
7
Solved
In a comment on this answer of another question, the commenter says:
don’t use kill -9 unless absolutely
necessary! SIGKILL can’t be trapped so
the killed program can’t run any
shutdown ...
Catheycathi asked 27/3, 2009 at 16:17
8
Solved
How do I kill the last spawned background task in Linux?
Example:
doSomething
doAnotherThing
doB &
doC
doD
#kill doB
????
Cocteau asked 26/10, 2009 at 13:10
1
Solved
ctrl-z (^z) acts in ways I do not understand when done inside a loop executed from a terminal.
Say I type
for ii in {0..100}; do echo $ii; sleep 1; done
then I hit ^z. I'll get:
[1]+ Stopped s...
Cullie asked 14/11, 2014 at 21:33
7
Solved
In this answer to another question, I was told that
in scripts you don't have job control
(and trying to turn it on is stupid)
This is the first time I've heard this, and I've pored over the ...
Savadove asked 27/3, 2009 at 15:40
1
Solved
To create a new interactive bash shell I call bash -i. Due to issues with my environment, bash cannot assert job control (I'm using cygwin bash in GNU emacs) and issues warnings ("cannot set termin...
Starinsky asked 9/11, 2012 at 1:19
2
Solved
Suppose pid X is a process group leader and X terminates, but other processes in the process group remain running (with X as their pgid). Will Linux prevent the value X from being assigned as a pid...
Aeromancy asked 22/7, 2011 at 1:55
4
Solved
What I know:
When a process is running I can press Ctrl+Z and suspend it. The with bg and fg commands I can either run it in "background" or "foreground" mode.
What I'm aksing:
...
Particiaparticipant asked 4/7, 2011 at 17:18
1
© 2022 - 2025 — McMap. All rights reserved.