[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Spam] Re: Why bash stops process in background?
From: |
Peter Volkov Alexandrovich |
Subject: |
Re: [Spam] Re: Why bash stops process in background? |
Date: |
Thu, 25 Aug 2005 19:29:03 +0400 |
On Чтв, 2005-08-25 at 08:46 -0600, Bob Proulx wrote:
> Peter Volkov Alexandrovich wrote:
> > P.S. I'm not subscribed to the list, so please CC me.
>
> > I need to run ssh in background just to forward ports. But anytime I put
> > it into background process state became stoped and this does not allow
> > me to send packets through forwarded ports. 'bg' command does not help.
>
> Very likely the ssh program is trying to do I/O. The kernel will
> notice this and stop the process so that you can bring it into the
> foreground and interact with it.
>
> This really has nothing to do with bash and is simply the behavior of
> BSD style job control as implemented by the kernel.
Very interesting. I did not know that. Thank you for explanation.
> Try giving ssh the -n option. Also, you may want to use -N too. Here
> is the ssh man page snippets.
[snip info from man page.]
Yes. -nN options help me.
Thank you, Bob, again,
Peter.