zsh-users
 help / color / mirror / code / Atom feed
From: Ville Herva <vherva@babbage.tky.hut.fi>
To: zsh-users@sunsite.auc.dk
Subject: Redirecting output afterwards
Date: Thu, 27 Apr 2000 11:20:04 +0300	[thread overview]
Message-ID: <20000427112004.A3089@babbage.tky.hut.fi> (raw)

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


             reply	other threads:[~2000-04-27  8:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-27  8:20 Ville Herva [this message]
2000-04-27  8:34 Ville Herva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000427112004.A3089@babbage.tky.hut.fi \
    --to=vherva@babbage.tky.hut.fi \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).