zsh-users
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-users@sunsite.auc.dk
Subject: Re: redirecting stdio/stderr from a suspended then bged job
Date: 12 Mar 1999 05:06:45 GMT	[thread overview]
Message-ID: <slrn7eh875.ss1.mason@coral.primenet.com.au> (raw)
In-Reply-To: <19990311105427.A6589@vt.edu>

Michael Barnes <mibarnes@vt.edu> typed:
:This has been bugging me for a while.  How can I suspend a job that is
:taking longer than I expect and then put it in the background and then
:redirect stdio and/or stderr to a file (or /dev/null) ?
:example:
:wget http://slowserver/bigfile.tgz
:1% done and its been 2 minutes
:^Z
:zsh: 25317 suspended  wget http://slowserver/bigfile.tgz
:bg %1 >/dev/null 2>&1
:nope does not work that just redirects the output of bg not the job that
:was bged.

You can't.  It's out of our control unless zsh was to keep running
just to keep the pipes going.

Of course, with recent wget you don't need to (if you use
the -v option) as it will automagically start writing to ``wget-log''
when it can't write to the tty any more.  Well, that's what happens
with me.  Maybe it needs another option.  BTW, the manual says it's
in -v mode by default, but without it I couldn't get it to go to
wget-log (when I tried just now).

Regards,
-- 
Geoff Wing   <gcw@pobox.com>            Mobile : (Australia) 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/


      parent reply	other threads:[~1999-03-12  5:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-11 15:54 Michael Barnes
1999-03-11 16:28 ` Bart Schaefer
1999-03-12  5:06 ` Geoff Wing [this message]

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=slrn7eh875.ss1.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --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).