The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
136 views

What risks are there in stopping and resuming processes in Linux?

Let's say I stop a process using Ctrl+Z and resume it five hours later using fg. How risky is this with regards to the proper functioning of the process? For instance, imagine that vim is working on ...
0
votes
0answers
25 views

Job submission on a multi-core computer

I have a 32 core computer (hopefully 64 core soon) which I have just acquired for data analysis. Previously I have used a cluster using the partable batch system for job submission. Can I setup a ...
1
vote
0answers
121 views

Setting up an Ubuntu Linux scalable web video cluster

I'm in the process of setting up what I hope will be a robust and scalable video processing cluster for a website I'm creating. Currently, I am processing video uploads with FFMPEG on the same web ...
0
votes
0answers
55 views

how do you monitor the progress of a command line program?

We have some custom command line programs at our Windows shop. These commands are scheduled to run (from within bat files) at regular intervals using the Task Scheduler. Our tasks pull data from ...
0
votes
1answer
14 views

Include job in bak to be activated on restore

I have a database with stored procedures and a maintenance job that runs some of the stored procedures nightly. When I take a backup of the database, is there any way that I can include the job in ...
0
votes
1answer
101 views

linux - Play sound on login?

I've installed Gentoo without a GUI and have appended aplay /usr/shar/sounds/startup3.wav &> /dev/null & to my /etc/bash/bashrc file. This works just fine in playing the sound file, but ...
1
vote
1answer
360 views

How can I get bash-like job control in zsh?

I want to configure zsh so that its job control behaves more like (I think) bash does by default. In particular: When I start a background job, it is by default owned by the shell and can be ...
1
vote
1answer
214 views

How to start a job in the stopped state?

In bash, how can I initiate a job in a stopped state, as if I started it normally and then immediately pressed Ctrl-Z? Or as if I had sent SIGSTOP to the process immediately, but without giving the ...
1
vote
1answer
256 views

What might cause cron jobs to occasionally not run or complete?

In my crontab, I have set MAILTO and a bunch of cron jobs (5-10 jobs). These cron jobs usually run fine and I get emails for them. Most of these jobs consistently run as expected. Emails and ...
0
votes
1answer
425 views

Execute background program in bash without job control

I often execute GUI programs, such as firefox and evince from shell. If I type "firefox &", firefox is considered as a bash job, so "fg" will bring it to foreground and "hang" the shell. This ...
0
votes
4answers
70 views

Re-use existing jobs when opening files

The question is best given by examples: vim example.txt #Opens Vim on new or existing file Ctrl+Z vim someother.txt Ctrl+Z vim example.txt #Auto-runs `fg 1` since example.txt is already open ...
1
vote
1answer
181 views

How to suspend a sourced script in bash?

When I run a process in Bash, I can suspend it with Ctrl-Z, but that does not seem to work for sourced scripts (. foo.sh). Is there a way to suspend such scripts?
0
votes
2answers
444 views

How to foreground a job from another session

As root, is there a way to foreground (fg) a job within a root session that is in the foreground of another root session? If the job in the other session has to be put in the background (using bg) ...
1
vote
2answers
150 views

Can the interactivity of a process be determined programmatically?

Is it possible to determine whether or not a given running process is interactive or merely daemon-like (i.e. an actual daemon, or a tail -f, or similar) using scripting or any other language? If so, ...
0
votes
1answer
111 views

How can you determine when a background task was started?

When surveying the output of jobs in bash, you'll often get a list like the following: [root@csx-tzg-sac-01 ~]# jobs [2] Running ( sleep 600 && ls -lh ~ossadmin/*.iso ) ...
0
votes
1answer
223 views

Force a backgrounded complex task to fg itself?

I will often run a simple monitoring task like the following: (sleep 600 && ls -lh /path/to/files)& Is it possible to have the process de-background itself part way in? For example, to ...
2
votes
2answers
2k views

List job ids (instead process ids)

The shell command jobs supports a -p option to just get the list of process ids. Is there an easy way to get just a list of job ids? (I know there is, but I am not really a shell guy (yet)). This ...
0
votes
1answer
137 views

Make background jobs available in parent shell

Sometimes I start several processes by using another script (in my case Ruby). I call this script from a terminal running bash. I would like to start those processes in the script in the background ...
93
votes
4answers
94k views

How can I resume a stopped job in Linux?

How can I resume a stopped job in Linux? I was using emacs and accidentally hit ctrl-z which blasted me back to the console. I can see it when I type 'jobs' [*****]$ jobs [1]+ Stopped ...
9
votes
1answer
6k views

Continue a “ctrl-z”-ed job in background

Is it possible to continue a stopped background job in background? I have a process running, I used ctrl-z to stop it and return to bash. If I want to continue it, there's fg command available but ...
0
votes
1answer
162 views

How to deal with job that stop and cannot continue unless made foreground?

Recent example: mountlo (using UML): vi@vi-notebook:~/b$ mountlo -m 16 -d /dev/uba1 /home/vi/mnt/usb -t vfat -o iocharset=utf8,allow_other& [1] 32561 vi@vi-notebook:~/b$ Checking that ptrace can ...
5
votes
1answer
2k views

Socat and rich terminals (with Ctrl+C/Ctrl+Z/Ctrl+D propagation)

socat - exec:'bash -li',pty,stderr,ctty -> bash: no job control in this shell What options should I use to get fully fledged shell as I get with ssh/sshd? I want to be able to connect the shell to ...