Questions tagged [job-control]
69 questions
2
votes
0 answers
Why job-foregrounding of gdb is losing it?
I have a script that starts a server, then bunch of clients, then I need to foreground the server back, so I could test something. For some reason the server quickly quits, as if per some signal, so I wanted to inspect it with gdb.
The problem is,…

Hi-Angel
- 4,933
- 8
- 63
- 86
2
votes
1 answer
Why bash puts process started via '&' to foreground?
When a process is started with "&",
bash places the new process to foreground group for a short time
and then places
itself back to foreground group.
As far as I know, when we run any external
command without the "&" background operator, the shell…

Igor Liferenko
- 1,499
- 1
- 13
- 28
2
votes
0 answers
Using distributed cache on output of first hadoop job
I am currently running two jobs such that job2 is dependent on job1.
I plan to use output of job1 and pass it as distributed cache in job2.
This will be used as reference in job2 to process another set of data.
I have written load functions in the 2…

S Kr
- 1,831
- 2
- 25
- 50
2
votes
2 answers
How can I implement shell job control basics in Python?
There is basic job control like suspend, resume, interrupt, and background implemented by most modern shells.
How can I make a shell sensitive to ^Z, fg, ^C, and bg (as they appear in bash), in Python? Or what should I be reading?

Christos Hayward
- 5,777
- 17
- 58
- 113
1
vote
2 answers
Bash job control - Can you terminate second command on list without terminating first?
If I issue this at a bash prompt: $ cmd_1 ; cmd_2
cmd_1 is in the foreground. Can I prevent cmd_2 from running without halting cmd_1? I have until cmd_1 finishes, at which time cmd_2 will start, and then it is too late.
I don't think this is…

ChrisSM
- 90
- 5
1
vote
1 answer
VSCode integrated terminal will not allow job control for some reason
I have a problem with my terminal where it shows the following whenever I start a new instance.
bash: cannot set terminal process group (1502): Inappropriate ioctl for device
bash: no job control in this shell
The terminal runs fine but the…

Metwesh
- 87
- 1
- 7
1
vote
2 answers
How to switch terminal to new child process of process launched with NSTask?
I made a pseudo terminal with method described here: http://lists.apple.com/archives/student-dev/2005/Mar/msg00019.html
The terminal itself worked well. Anyway the problem is terminal cannot being switched to child process. For an example, I…

eonil
- 83,476
- 81
- 317
- 516
1
vote
1 answer
Why is SIGTTOU signal being delivered to the process?
I was trying to build an interactive shell which runs within the ZSH shell. Any command would execute in it's own process group (thus I use tcsetpgrp call to make it the foreground process group, and once the command is executed the the interactive…

ANIRUDH BUVANESH
- 128
- 1
- 9
1
vote
1 answer
Programmatically start a series of processes w\ job control
I have a series of 7 processes required to run a complex web app that I develop on. I typically start these processes manually like this:
job &>/tmp/term.tail &
term.tail is a fifo pipe I leave tail running on to see the output of these processes…

TJ Singleton
- 13
- 2
1
vote
1 answer
Why is bash breaking MPI job control loop
I'm attempting to use a simple bash script to sequentially run a batch of MPI jobs. This script works perfectly when running serial code (I am using Fortran 90), but for some reason bash breaks out of the loop when I attempt to execute MPI code.
I…

Clint Jordan
- 61
- 3
1
vote
0 answers
shell, job control for receiving end of the pipe
I don't understood, why I can't run some process ("cat" in this example) in background and later make it foreground:
$ dash
$ f() { cat /dev/stdout & sleep 1; fg ; }
$ sleep 2 | f
dash: 1: fg: job (null) not created under job…

Kirill Frolov
- 401
- 4
- 10
1
vote
1 answer
How do I make a background process block for input a la the shell's `bg` command?
I am implementing my own fragment of code for a security control purpose. It normally runs in the background but on a timeout needs to take over the current terminal, display a message, collect user input, and react to the user input.
Waiting for…

Joshua
- 40,822
- 8
- 72
- 132
1
vote
1 answer
Background and suspended processes - Implementing a Job Control Shell in C
I'm implementing a Job Control Shell in C in Linux as a project for a Operating Systems-related subject. I have a main() function that does child process management, helped with a linked list as shown here in which background and suspended jobs…
user9764916
1
vote
1 answer
How to save SLURM job configuration?
suppose I run a slurm job with the following configuration:
#!/bin/bash
#SBATCH --nodes=1 # set the number of nodes
#SBATCH --ntasks=1 # Run a single task
#SBATCH…

Maryam Hnr
- 145
- 2
- 7
1
vote
2 answers
How to temporarily stop Resque Queues from processing new jobs?
Is there a way to tell all workers to stop processing any new jobs for a particular queue (or all queues)?
We have an occasional issue where the systems that are needed become unavailable (power down, hardware failures, etc.), and it would be…

crispy
- 11
- 1