From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29611 invoked from network); 12 Mar 1999 05:07:44 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Mar 1999 05:07:44 -0000 Received: (qmail 16846 invoked by alias); 12 Mar 1999 05:06:56 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2222 Received: (qmail 16838 invoked from network); 12 Mar 1999 05:06:53 -0000 To: zsh-users@sunsite.auc.dk Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.users Subject: Re: redirecting stdio/stderr from a suspended then bged job Date: 12 Mar 1999 05:06:45 GMT Organization: PrimeNet Computer Consultants Distribution: local Message-ID: References: <19990311105427.A6589@vt.edu> Reply-To: mason@primenet.com.au NNTP-Posting-Host: coral.primenet.com.au X-Trace: coral.primenet.com.au 921215205 29570 203.43.15.2 (12 Mar 1999 05:06:45 GMT) X-Complaints-To: usenet@coral.primenet.com.au NNTP-Posting-Date: 12 Mar 1999 05:06:45 GMT User-Agent: slrn/0.9.5.4 (UNIX) Michael Barnes 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 Mobile : (Australia) 0412 162 441 Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/