Why would you want to bring it back to foreground? Just knowing it is happily
running and doing what you want it to do should be enough. If you want to track
it's progress though, and it already puts output letting you know about current
status to STDOUT you might do something like this.
john > john.status &
Then all of the stuff that is normally printed to the screen is dumped into the
file john.status. Just go open the file john.status to see what is happening.
If the program isn't finished, it doesn't matter. You can open John.status
while it is still being written to. If it doesn't have any screen output, and
you have the source code, you could add some output lines in it (the most
useful one being output when the program finishes informing you that is is
done).
These password cracking programs can take a long time to run, especially with a
slow computer (like a desktop PC). Even on Supercomputers they can take a while
to run if you have a large passwd (or shadow) file. So regular output of the
program's progress is nice if you want that warm comfortable feeling that
everything is going well. But don't make your output to the status file too
often or you may find yourself filling up the hadr drive with your status file
(ouch!).
Later
LordX wrote:
> But again, I don't know what to do? After login again, how to make my
> program jump to the foreground?
> many many thanks.
> I love this board.
>