Tagged Questions
1
vote
3answers
203 views
What happens to suspended jobs in unix?
We can issue CTRL+Z to suspend any jobs in Unix and then later on bring them back to life using fg or bg. I want to understand what happens to those jobs that are suspended like this ? Are they ...
1
vote
1answer
68 views
Please explain the output from the jobs command
When I ran jobs command I see the following output :
[1] - Suspended ./startWebLogic.sh
[2] + Suspended (signal) top
What does -/+ indicate in the second column ?
...
0
votes
2answers
339 views
Get PID of a function executed in the background
#!/bin/bash
function abc() # wait for some event to happen, can be terminated by other process
{
sleep 3333
}
echo "PID: $$"
abc &
echo "PID: $$"
I need to retrieve the pid of this function, ...
1
vote
1answer
273 views
How can I manage jobs after I disconnect from my tty/ssh session?
If I ssh to a box and start a task that will take some time to complete I usually press control+z to pause the process, and then immediately type bg 1 to put run it in the background.
I can then type ...