zsh-users
 help / color / mirror / code / Atom feed
* Re: Redirecting output afterwards
@ 2000-04-27  8:34 Ville Herva
  0 siblings, 0 replies; 2+ messages in thread
From: Ville Herva @ 2000-04-27  8:34 UTC (permalink / raw)
  To: zsh-users

Sorry, I didn't do my homework well enough. The question has been answered
before:

http://www.zsh.org/mla/users//1999/msg00213.html
http://www.zsh.org/mla/users//1999/msg00207.html



--
"Se oli kuin noituutta:  Ei pystytty käsittämään, kuinka suurmiehiäkin
Gleb ivallaan sai itkemään!  Mursi muutamalla sanalla: lause tai kaksi! 
Häntä alettiin kutsua teurastajaksi. " - YUP


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

* Redirecting output afterwards
@ 2000-04-27  8:20 Ville Herva
  0 siblings, 0 replies; 2+ messages in thread
From: Ville Herva @ 2000-04-27  8:20 UTC (permalink / raw)
  To: zsh-users

Often I've logged in from another location and then began executing a
large job, say "tar czvf foo /". Later, it turns out that the job will
take hours to complete, and I'll have to log out before that. Of course, I
will then ^Z, bg and disown the job, but I will lose the output. Sometimes
it is essential to know if the job returned errors or warnings. The output
itself is sometimes crucial (du, for example, can take hours in ~70GB data
dir).

Now, if I had been clever enough to realize this when I launched the job,
this would be no problem:

prompt % nohup job
prompt % job >& file &
  or even
prompt % screen job

but now the job has already been running for hours, and I wouldn't wan't
to start it all over again just to be able to log out and later see the
result.

What I was thinking is that could something like

prompt % job &
[1] 6643

(after some hours)
prompt % %1 >& output.file       # redirect output of a running job
prompt % disown %1
prompt % exit

be possible in theory?


-- 
"Sillä minä en ole mukava mies, enkä siksi syyttä huou tätä mykistävää
kyynisyyttä ja kaltaiseni luonne vaatii vuosikausien harjoituksen, en ole
mukava mies!  Hyväntahtoisuuteni loppuu tähän! Painukaa helvettiin!  Niin! 
En ole mukava mies!  E-en! En ole mukava, En ole mukava mies!" - YUP


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

end of thread, other threads:[~2000-04-27  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-27  8:34 Redirecting output afterwards Ville Herva
  -- strict thread matches above, loose matches on Subject: below --
2000-04-27  8:20 Ville Herva

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).