public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] rebuilding with -e -- problem with output
@ 2005-08-06 13:24 Mark Shields
  2005-08-06 13:34 ` [gentoo-user] " Mark Shields
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Shields @ 2005-08-06 13:24 UTC (permalink / raw
  To: gentoo-user

I started emerge -Nave yesterday, but used the & so I could close out
my ssh session w/o interrupting the program.  It's still compiling (of
course), but I want to be able to see the output (I know it's still
running from gnome-system-monitor, pktstat).  Is there any way to
recapture the output to screen?
-- 
- Mark Shields

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-06 13:24 [gentoo-user] rebuilding with -e -- problem with output Mark Shields
@ 2005-08-06 13:34 ` Mark Shields
  2005-08-06 14:41   ` Mark Shields
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Shields @ 2005-08-06 13:34 UTC (permalink / raw
  To: gentoo-user

err, it wasn't emerge -Nave, it was emerge -ve world.

On 8/6/05, Mark Shields <laebshade@gmail.com> wrote:
> I started emerge -Nave yesterday, but used the & so I could close out
> my ssh session w/o interrupting the program.  It's still compiling (of
> course), but I want to be able to see the output (I know it's still
> running from gnome-system-monitor, pktstat).  Is there any way to
> recapture the output to screen?
> --
> - Mark Shields
> 


-- 
- Mark Shields

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-06 13:34 ` [gentoo-user] " Mark Shields
@ 2005-08-06 14:41   ` Mark Shields
  2005-08-06 19:13     ` Raymond Lillard
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Shields @ 2005-08-06 14:41 UTC (permalink / raw
  To: gentoo-user

Perhaps I wasn't clear enough (I apologize, I was only waking up
then).  I changed my make.conf file yesterday and starting recompiling
my entire system with emerge -ve world &.  I used the & because I was
at work and didn't want the recompile process stopping if my ssh
session was terminated unexpectedly.  It's still compiling today as I
see pktstat is running, but I want to be able to see the output.  Is
there a way to recapture the output to screen or to a file?

On 8/6/05, Mark Shields <laebshade@gmail.com> wrote:
> err, it wasn't emerge -Nave, it was emerge -ve world.
> 
> On 8/6/05, Mark Shields <laebshade@gmail.com> wrote:
> > I started emerge -Nave yesterday, but used the & so I could close out
> > my ssh session w/o interrupting the program.  It's still compiling (of
> > course), but I want to be able to see the output (I know it's still
> > running from gnome-system-monitor, pktstat).  Is there any way to
> > recapture the output to screen?
> > --
> > - Mark Shields
> >
> 
> 
> --
> - Mark Shields
> 


-- 
- Mark Shields

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-06 14:41   ` Mark Shields
@ 2005-08-06 19:13     ` Raymond Lillard
  2005-08-06 20:17       ` Zac Medico
  0 siblings, 1 reply; 8+ messages in thread
From: Raymond Lillard @ 2005-08-06 19:13 UTC (permalink / raw
  To: gentoo-user

Mark Shields wrote:
> Perhaps I wasn't clear enough (I apologize, I was only waking up
> then).  I changed my make.conf file yesterday and starting recompiling
> my entire system with emerge -ve world &.  I used the & because I was
> at work and didn't want the recompile process stopping if my ssh
> session was terminated unexpectedly.  It's still compiling today as I
> see pktstat is running, but I want to be able to see the output.  Is
> there a way to recapture the output to screen or to a file?

Not that I know of now.

If asked in advance of starting the "emerge", I would have
advised you to use "nohup".

man nohup

-- 
Regards,
Ray
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-06 19:13     ` Raymond Lillard
@ 2005-08-06 20:17       ` Zac Medico
  2005-08-06 20:57         ` Raymond Lillard
  0 siblings, 1 reply; 8+ messages in thread
From: Zac Medico @ 2005-08-06 20:17 UTC (permalink / raw
  To: gentoo-user

Raymond Lillard wrote:
> Mark Shields wrote:
> 
>> Perhaps I wasn't clear enough (I apologize, I was only waking up
>> then).  I changed my make.conf file yesterday and starting recompiling
>> my entire system with emerge -ve world &.  I used the & because I was
>> at work and didn't want the recompile process stopping if my ssh
>> session was terminated unexpectedly.  It's still compiling today as I
>> see pktstat is running, but I want to be able to see the output.  Is
>> there a way to recapture the output to screen or to a file?
> 
> 
> Not that I know of now.
> 
> If asked in advance of starting the "emerge", I would have
> advised you to use "nohup".
> 
> man nohup
> 

I'm not aware of a way to reconnect with stderr, stdin, and stdout but I know that those file descriptors still exist in /proc/${PID}/fd.

Normally, in order to accomplish what you want, I would use app-misc/screen.  Screen is a very nice solution because you can reattach to an interactive terminal whenever you want.

Alternatively, you can redirect the emerge output to a log file:

emerge foo > /var/log/emerge-foo.log 2>&1 &

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-06 20:17       ` Zac Medico
@ 2005-08-06 20:57         ` Raymond Lillard
  2005-08-08  9:00           ` Michael Kintzios
  0 siblings, 1 reply; 8+ messages in thread
From: Raymond Lillard @ 2005-08-06 20:57 UTC (permalink / raw
  To: gentoo-user

Zac Medico wrote:
> Raymond Lillard wrote:
>> Mark Shields wrote:
>>> Perhaps I wasn't clear enough (I apologize, I was only waking up
>>> then).  I changed my make.conf file yesterday and starting recompiling
>>> my entire system with emerge -ve world &.  I used the & because I was
>>> at work and didn't want the recompile process stopping if my ssh
>>> session was terminated unexpectedly.  It's still compiling today as I
>>> see pktstat is running, but I want to be able to see the output.  Is
>>> there a way to recapture the output to screen or to a file?
>>
>> Not that I know of now.
>>
>> If asked in advance of starting the "emerge", I would have
>> advised you to use "nohup".
> 
> I'm not aware of a way to reconnect with stderr, stdin, and stdout but I 
> know that those file descriptors still exist in /proc/${PID}/fd.
> 
> Normally, in order to accomplish what you want, I would use 
> app-misc/screen.  Screen is a very nice solution because you can 
> reattach to an interactive terminal whenever you want.

Good idea.

> Alternatively, you can redirect the emerge output to a log file:
> 
> emerge foo > /var/log/emerge-foo.log 2>&1 &

All true, but the point of using "nohup" is that it disassociates
the nohup'd process from the parent shell/terminal session.  This
allows one to start a long running task and log out without ending
it.  Pushing a task into the background followed by a logout will
end said background task.

Progress may be monitored by logging in at some later point in
time and/or from some other location.  "tail -f" works well for
this.

-- 
Regards,
Ray
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-06 20:57         ` Raymond Lillard
@ 2005-08-08  9:00           ` Michael Kintzios
  2005-08-08  9:37             ` Michael Kintzios
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Kintzios @ 2005-08-08  9:00 UTC (permalink / raw
  To: gentoo-user



> -----Original Message-----
> From: Raymond Lillard [mailto:rlillard@sonic.net] 
> Sent: 06 August 2005 21:57
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Re: rebuilding with -e -- problem 
> with output
> 
> 
> Zac Medico wrote:
> > Raymond Lillard wrote:
> >> Mark Shields wrote:
> >>> Perhaps I wasn't clear enough (I apologize, I was only waking up
> >>> then).  I changed my make.conf file yesterday and 
> starting recompiling
> >>> my entire system with emerge -ve world &.  I used the & 
> because I was
> >>> at work and didn't want the recompile process stopping if my ssh
> >>> session was terminated unexpectedly.  It's still 
> compiling today as I
> >>> see pktstat is running, but I want to be able to see the 
> output.  Is
> >>> there a way to recapture the output to screen or to a file?
> >>
> >> Not that I know of now.
> >>
> >> If asked in advance of starting the "emerge", I would have
> >> advised you to use "nohup".
> > 
> > I'm not aware of a way to reconnect with stderr, stdin, and 
> stdout but I 
> > know that those file descriptors still exist in /proc/${PID}/fd.
> > 
> > Normally, in order to accomplish what you want, I would use 
> > app-misc/screen.  Screen is a very nice solution because you can 
> > reattach to an interactive terminal whenever you want.
> 
> Good idea.
> 
> > Alternatively, you can redirect the emerge output to a log file:
> > 
> > emerge foo > /var/log/emerge-foo.log 2>&1 &
> 
> All true, but the point of using "nohup" is that it disassociates
> the nohup'd process from the parent shell/terminal session.  This
> allows one to start a long running task and log out without ending
> it.  Pushing a task into the background followed by a logout will
> end said background task.
> 
> Progress may be monitored by logging in at some later point in
> time and/or from some other location.  "tail -f" works well for
> this.
> 
> -- 
> Regards,
> Ray

In addition to the above there's also PORTAGE_LOG="/var/log/portage"
which can be set in the /etc/make.conf to capture the emerge proceedings
by tee-ing into the relevant file in /var/log/portage.  Again, using
tail -f in this file(s) will show you what's happening.  Setting up
logrotate or a cron jobby will help to keep the /var/log/portage
directory under control before it bloats itself to destruction. ;)
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [gentoo-user] Re: rebuilding with -e -- problem with output
  2005-08-08  9:00           ` Michael Kintzios
@ 2005-08-08  9:37             ` Michael Kintzios
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Kintzios @ 2005-08-08  9:37 UTC (permalink / raw
  To: gentoo-user



> -----Original Message-----
> From: Michael Kintzios [mailto:michaelkintzios@lycos.co.uk] 
> Sent: 08 August 2005 10:01
> To: gentoo-user@lists.gentoo.org
> Subject: RE: [gentoo-user] Re: rebuilding with -e -- problem 
> with output
> 
> > -----Original Message-----
> > From: Raymond Lillard [mailto:rlillard@sonic.net] 
> > Sent: 06 August 2005 21:57
> > To: gentoo-user@lists.gentoo.org
> > Subject: Re: [gentoo-user] Re: rebuilding with -e -- problem 
> > with output
> > 
> > 
> > Zac Medico wrote:
> > > Raymond Lillard wrote:
> > >> Mark Shields wrote:
> > >>> Perhaps I wasn't clear enough (I apologize, I was only waking up
> > >>> then).  I changed my make.conf file yesterday and 
> > starting recompiling
> > >>> my entire system with emerge -ve world &.  I used the & 
> > because I was
> > >>> at work and didn't want the recompile process stopping if my ssh
> > >>> session was terminated unexpectedly.  It's still 
> > compiling today as I
> > >>> see pktstat is running, but I want to be able to see the 
> > output.  Is
> > >>> there a way to recapture the output to screen or to a file?
> > >>
> > >> Not that I know of now.
> > >>
> > >> If asked in advance of starting the "emerge", I would have
> > >> advised you to use "nohup".
> > > 
> > > I'm not aware of a way to reconnect with stderr, stdin, and 
> > stdout but I 
> > > know that those file descriptors still exist in /proc/${PID}/fd.
> > > 
> > > Normally, in order to accomplish what you want, I would use 
> > > app-misc/screen.  Screen is a very nice solution because you can 
> > > reattach to an interactive terminal whenever you want.
> > 
> > Good idea.
> > 
> > > Alternatively, you can redirect the emerge output to a log file:
> > > 
> > > emerge foo > /var/log/emerge-foo.log 2>&1 &
> > 
> > All true, but the point of using "nohup" is that it disassociates
> > the nohup'd process from the parent shell/terminal session.  This
> > allows one to start a long running task and log out without ending
> > it.  Pushing a task into the background followed by a logout will
> > end said background task.
> > 
> > Progress may be monitored by logging in at some later point in
> > time and/or from some other location.  "tail -f" works well for
> > this.
> > 
> > -- 
> > Regards,
> > Ray
> 
> In addition to the above there's also PORTAGE_LOG="/var/log/portage"
> which can be set in the /etc/make.conf to capture the emerge 
> proceedings
> by tee-ing into the relevant file in /var/log/portage.  Again, using
> tail -f in this file(s) will show you what's happening.  Setting up
> logrotate or a cron jobby will help to keep the /var/log/portage
> directory under control before it bloats itself to destruction. ;)

EDIT:  Oops, I meant PORT_LOGDIR.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-08-08  9:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-06 13:24 [gentoo-user] rebuilding with -e -- problem with output Mark Shields
2005-08-06 13:34 ` [gentoo-user] " Mark Shields
2005-08-06 14:41   ` Mark Shields
2005-08-06 19:13     ` Raymond Lillard
2005-08-06 20:17       ` Zac Medico
2005-08-06 20:57         ` Raymond Lillard
2005-08-08  9:00           ` Michael Kintzios
2005-08-08  9:37             ` Michael Kintzios

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox