Background question

Tim Wunder tim
Mon May 17 11:55:24 PDT 2004


On Wednesday 05 November 2003 10:54 pm, someone claiming to be Brad De Vries 
wrote:
> --- Tim Wunder <tim at thewunders.org> wrote:
> > I guess this is a bash question, and probly FAQ-ish,
> > but...
> > Say I set a make job to execute in the background
> > with 'make >make.log
> > 2>&1 &' and the job then stops to ask for user
> > input, like asking, "mv:
> > overwrite `.deps/alarmdaemoniface_stub.Plo',
> > overriding mode 0644?"
> >
> > How do I give the user input to the job? Is it
> > possible?
> >
> > Thanks,
> > Tim
>
> IIRC, there is a built-in command (i.e., part of your
> shell, assuming it's sh, ksh, bash, etc.) called "fg"
> which brings background jobs to the foreground.
>
>
Well, apparently, fg <PID> isn't what's required. After a bit of googling, I 
came upon the recommendaition to use 'fg %1'; which utimately lead me to the 
chance to break out of the make. Not what I wanted, but it worked. 

Thanks, 
Tim

-- 
RedHat 8.0 Kernel 2.4.20-20.8,  KDE 3.1.4, Xfree86 4.2.1
  2:35am  up 32 days,  5:21,  2 users,  load average: 0.08, 0.02, 0.01
It's what you learn after you know it all that counts



More information about the Linux-users mailing list