delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/22/17:04:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 22 Feb 2005 14:03:20 -0800 (PST)
From: "Jeremy C. Reed" <reed AT reedmedia DOT net>
To: Matt Wilkie <maphew AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: how to bring job to foreground?
In-Reply-To: <20050222215738.GS20126@mikee.ath.cx>
Message-ID: <Pine.LNX.4.43.0502221359260.12069-100000@pilchuck.reedmedia.net>
MIME-Version: 1.0
X-IsSubscribed: yes

On Tue, 22 Feb 2005, Mike wrote:

> On Tue, 22 Feb 2005, Matt Wilkie might have said:
>
> > Hi,
> >
> > I just suspended a short commandline script to the background using ctrl-z
> > How do I bring it forward again? The bash prompt didn't come up after ctrl-z.
> > The script is:
> >
> >     for dir in *; do tar czf $dir.tgz $dir;done
> >
> > If I open up another console I can see the processes are still active
> > using 'ps -a'
> > but the commands 'jobs, fg, bg' say there is nothing to control
> >
> > thanks in advance for your time,

> $ fg

I am not sure how "fg" would work. Matt doesn't not have a shell prompt
(as mentioned above) on the same terminal.

Does ps tell you it is in a suspended state (stopped process with state
flag "T")?

Use kill -SIGCONT on the suspended process ID.

 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training
	  	 	 http://www.pugetsoundtechnology.com/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019