0
votes
1answer
109 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
210 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 ...
7
votes
2answers
5k views

Put a task to the background with bash

I know that you can start a background job with Bash doing foo &. However, the best way I know to put a foreground job to the background is to do Ctrl+z to pause it then bg 1 to resume it in the ...