1
vote
2answers
101 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
1answer
93 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
235 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
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 ...
0
votes
1answer
211 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 ...
87
votes
4answers
81k 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 ...
0
votes
1answer
154 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
1k 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 ...