Questions tagged [job-control]

The management of concurrent processes via a "main" process/method.

This tag is used when a question specifically relates to managing multiple running processes managed by a centralized software construct.

Examples

UNIX: Shell (bash, ksh) "background" processes managed by the "jobs" command Windows: PowerShell "Jobs" managed by Start-Job/Stop-Job/Remove-Job cmdlets

25 questions
49
votes
6 answers

Bash Loop - How to stop the loop when I press Control-C inside a command?

I am rsyncing a few directories. I have a bash terminal open and am executing something like this: for DIR in * ; do rsync -a $DIR example.com:somewhere/ ; done However if I want to stop the whole things, I press Control-C. That stops the rsync,…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
40
votes
7 answers

What is a zombie process and how do I kill it?

Virtual Shotguns?
jldugger
  • 14,122
  • 19
  • 73
  • 129
20
votes
2 answers

Putting a process in the background without stopping it - (ctrl+z)?

If I start a process by typing it in normally at the command line, such as wget http://site.com/bigfile.zip and then decide I want to move that to the background, I know that I can use something like ctrl+z and then bg 1 (or jobs first if needed…
cwd
  • 2,693
  • 9
  • 32
  • 47
5
votes
6 answers

job control and ssh

I can't seem to figure out a decent way to manage jobs over ssh. I want to start a job in an ssh session, logout, log back in, do a fg, check on the job, logout, then repeat the whole process. nohup doesn't seem to wrok well. I used this command …
devin
  • 1,226
  • 3
  • 20
  • 27
4
votes
2 answers

Prevent a systemd service from starting if another systemd service is running

In systemd (v237 on UbuntuLinux 18.04 bionic), I can create a service file (for A.service), and specify another service Requisite=B.service. Meaning if I try to start A.service and B.service isn't already running, then A.service will not be started.…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
2
votes
0 answers

Bash and background processes PGID and receiving signals

My actual problem is that a process I run in an rcfile in docker as docker run container bash --rcfile rcfile remains attached to the bash session by sharing the PGID which means that when I Ctrl-C an unrelated command the process receives a…
2
votes
2 answers

Bash: Call shell script but do not wait for return code

Is it possible in Bash to call a shell script from another shell script but not have the original script wait for the sub-script to complete?
user160910
2
votes
2 answers

Can you screen a running programme?

Possible Duplicate: Can I nohup/screen an already-started process? GNU screen is great for long running programmes. You can start your programme in it and disconnect and bring your laptop home. However sometimes I start a programme outside screen…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
2
votes
1 answer

Disable error reporting on Windows 2008 Server to avoid stalling the job queue?

I have a process running queue jobs and runs other processes to complete them. Occasionally the .exe it is running fails and this causes a crash report dialog to open (WerFault.exe). This causes all the other jobs on the queue to wait until someone…
1
vote
0 answers

What is shell's maximum background jobs PID stored exit-codes?

When running a shell job in the background, the shell keeps track of the exit-code that can be retrieved with wait . When a new background job is run, it gets its own new PID, even if previous background jobs are ended, because the exit-code of…
Léa Gris
  • 113
  • 4
1
vote
1 answer

Long running bash update script loop. How to handle terminating better?

I have a bash script that downloads some data, runs a process to import it, then sleeps for a little while (about an hour). It's running fine as a systemd service (on Ubuntu 16.04 & 18.04) But I am afraid that interrupting the import process could…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
1
vote
0 answers

PBS Torque Limit Resource by Time of Day

I am using Torque to manage software that I have a limited number of licenses of (4 to be exact). During the day I need to keep 2 licenses free for use of setting up cases and at night and over the weekend I can use all 4 licenses to solve cases. Is…
LWhitson2
  • 111
  • 3
1
vote
1 answer

Slurm: Have two separate queues for GPU and CPU-only jobs

At the moment, we have set up Slurm to manage a small cluster of six nodes with four GPUs each. That has been working great so far, but now we want to utilize the Intel Core i7-5820K CPUs for jobs which only require CPU processing power. Each CPU…
Micha
  • 121
  • 4
1
vote
1 answer

open source job/process management/monitoring/control system

I'm looking for an open source solution for the following: I have jobs that need to run continuously. The jobs are applications or scripts. If they fail, they need to be restarted. If they fail, say 10 times consecutively or within a certain time…
1
vote
1 answer

Learning Control-M

Please recommend an approach to achieving familiarity, fluency, and eventually expertise in Control-M. The immediate problem domain is "potent stakeholders have urged the migration of a zoo of hundreds of cron jobs, some quite elderly, to…
Thomas L Holaday
  • 1,253
  • 4
  • 16
  • 19
1
2