Questions tagged [job-control]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
89 views

Verify in ExecStartPre if bash binary exists

I want my service to start only if another service is not active. To do so, as explained in this other question, I am going to do: ExecStartPre=/bin/bash -xc '/usr/bin/systemctl is-active --quiet ...
user avatar
1 vote
1 answer
127 views

"Dezentral" job management with redundancy/load balancing

I search a job management solution for local processes. Usually they run for some weeks. At the moment I use a jenkins, but there the server is not restartable (security updates) and there is no ...
user avatar
  • 11
4 votes
2 answers
5k views

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 ...
user avatar
1 vote
0 answers
79 views

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 <PID>. When a new background job is run, it gets its own new PID, even if ...
user avatar
  • 113
1 vote
1 answer
172 views

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 ...
user avatar
1 vote
0 answers
351 views

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 ...
user avatar
  • 111
0 votes
2 answers
129 views

Batch Job Processing vs Linux Kernel

I have several large hugin scripted jobs which I would like to have processed in a timely manner. Each script will sometimes use all of the machine's cores at times, and other times be single threaded ...
user avatar
  • 109
-2 votes
1 answer
116 views

How to resume then send a program back to the background

I know I can run something in the background by adding & to it, such as tail -f log.log I can then resume or send the job to the foregrond with fg However, once I do this, how do I send it to ...
user avatar
  • 107
-2 votes
2 answers
180 views

memory usage per user in SGE cluster

I would like to automate the estimation of monthly memory usage of all jobs performed by a given user in my cluster (SGE, ubuntu). I have seen there are many tools to compute the current memory usage ...
user avatar
1 vote
1 answer
1k views

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 ...
user avatar
  • 121
2 votes
0 answers
793 views

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 ...
user avatar
0 votes
2 answers
1k views

esxi 5.0 Command Line, no disown command

In linux I would use the disown command to disconnect a backgrounded process from my terminal so when I quit the terminal or disconnected from it, the job would continue as a child of the init process....
user avatar
2 votes
2 answers
12k views

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?
user avatar
1 vote
1 answer
966 views

open source job/process management/monitoring/control system [closed]

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, ...
user avatar
1 vote
1 answer
2k views

How can I disable CTRL+Z backgrounding in vim or nano?

I'm using stty susp ^- in a user's .bashrc shell in an attempt at preventing users from using CTRL+Z to background a process. The reason behind this, is that we have a number of users who are used to ...
user avatar
  • 7,530
20 votes
2 answers
14k views

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

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 ...
user avatar
  • 2,683
2 votes
1 answer
7k views

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 ...
user avatar
1 vote
2 answers
920 views

Sun Grid Engine: Automatically Terminating Idle Interactive Jobs

We're considering using Sun Grid Engine on a small compute cluster. Right now, the current set up is pretty crude and just involves having people ssh to an open machine to run their jobs. We'd like ...
user avatar
  • 195
1 vote
1 answer
65 views

Running Job and Paused Job Writing to the same File

So I ran tcpdump twice overnight by accident, both outputting to the same file. However, I ran them as jobs and one of them has been paused the whole time. Anyone have a recommendations on how to ...
user avatar
  • 81.6k
49 votes
6 answers
33k views

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 ...
user avatar
0 votes
1 answer
183 views

Sending ^Z to a process on a Xen Console?

I have a Xen server with some VMs on it. I'm using xm console to view it and run some programmes. However I wanted to put the process in the background, and pressed ^Z (control Z) by habit, but that ...
user avatar
2 votes
2 answers
5k views

Can you screen a running programme? [duplicate]

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. ...
user avatar
1 vote
1 answer
1k views

Learning Control-M [closed]

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 ...
user avatar
5 votes
6 answers
5k views

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 ...
user avatar
  • 1,226
40 votes
7 answers
42k views

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

Virtual Shotguns?
user avatar
  • 14.1k