[PLUG] nohup question
Galen Seitz
galens at seitzassoc.com
Sun Feb 26 17:32:17 UTC 2017
On 02/26/17 08:44, Rich Shepard wrote:
> For my immediate need I chose to use nohup rather than alternatives.
> There's a paucity of information on the web, even less in the man page.
> That's OK as it's a simple tool with no options.
>
> I invoked the command in a virtual terminal in one Xfce4 workspace. When I
> run the command, jobs -l, I see the process number of background running job
> #1. But, when I try the same command from another v.t. I see nothing. So, if
> I log out of the GUI will I be able to check from the console that the job
> has finished or is still running? I have not found an answer on the web;
> perhaps I've not correctly asked the question there. As this long-running
> model is on a laptop I can remained logged in if I need to check job status
> from that one v.t.
ps auxw | grep 'my_program'
or, assuming nohup shows up the ps output
ps auxw | grep 'nohup'
or you could note the process ID when you invoke nohup and look for it
in the ps output.
ps auxw | grep 'my_pid'
galen
--
Galen Seitz
galens at seitzassoc.com
More information about the PLUG
mailing list