Always need to enter password again

Robert Heller heller at deepsoft.com
Sat Oct 12 22:16:45 UTC 2019


At Sat, 12 Oct 2019 19:49:35 +0200 Volker Wysk <post at volker-wysk.de> wrote:

> 
> Am Samstag, den 12.10.2019, 13:39 -0400 schrieb Robert Heller:
> > At Sat, 12 Oct 2019 19:10:30 +0200 "Ubuntu user technical
> > support,  not for general discussions" <ubuntu-users at lists.ubuntu.com
> > > wrote:
> > 
> > > Am Samstag, den 12.10.2019, 16:06 +0100 schrieb Colin Law:
> > > > On Sat, 12 Oct 2019 at 15:34, Volker Wysk <post at volker-wysk.de>
> > > > wrote:
> > > > > Looks like I have to live with it.
> > > > 
> > > > Do you use the terminal often enough that it is a nuisance?  If
> > > > so I
> > > > wonder why.  I generally only use it when the GUI is playing up
> > > > and I
> > > > need to do something to sort it out.  I am not saying you should
> > > > not
> > > > use it, just interested in the use case that needs it routinely.
> > > 
> > > You're right. I don't use it that often. But sometimes I have a
> > > long-
> > > running job which I don't want to do in a terminal window. When I
> > > check
> > > the progress, I need to switch to the virtual console and back. It
> > > just
> > > happened to happen a few times recently. Not sure any longer what
> > > it
> > > was precisely.
> > 
> > man nohup
> > man bash (search for "REDIRECTION")
> > man nice
> > 
> > Eg: 
> > nohup nice ./long-running-job-script.sh >& long-running-job-
> > script.log </dev/null &
> > 
> > Then some time later:
> > 
> > tail long-running-job-script.log
> > 
> > will give you the last few lines written to the log file.
> 
> I was aware of all that, except for the "</dev/null" part. Why haven't
> I used it for this purpose? Silly me.

nohup + </dev/null basically unhooks the process from the terminal. Closing
the terminal window (or even logging out) won't kill the process. And >&...log
captures the process terminal output for later checking (did it work? Crash?
is it still running? How far along is it?, etc.).

> 
> Cheers
> Volker
> 
>                                                                                                                          

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                               




More information about the ubuntu-users mailing list