ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: devel@altlinux.ru
Subject: [devel] Re: remote shell and background jobs
Date: Thu, 7 Mar 2002 17:23:36 +0300
Message-ID: <20020307142336.GA11778@mhz.mikhail.zabaluev.name> (raw)
In-Reply-To: <20020307133638.GA9229@ldv.office.alt-linux.org>

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

Hello Dmitry,

On Thu, Mar 07, 2002 at 04:36:38PM +0300, Dmitry V. Levin wrote:
>
> > В ssh на altair.altlinux.ru, запускаем
> > 
> > $ sleep 30 &
> > $ exit
> > 
> > Соединение не закрывается, пока не завершится фоновая задача.
> > nohup ничего не меняет.
> 
> Все правильно, см. /usr/share/doc/openssh-3.0.2p1/TODO
> 
> Виновата фоновая задача. Так будет работать:
> $ nohup sleep 30 </dev/null >/dev/null 2>&1 &
> $ exit
> 
> Если непонятно, почему оно так работает, могу объяснить.

Понял. На самом деле, с nohup достаточно одного </dev/null :
выходные потоки команды она перенаправляет в nohup.out, а свои
закрывает.

А почему на linux.ru.net этого эффекта не наблюдается?
Старая версия sshd?

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
You will lose an important tape file.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-03-07 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-07 11:23 [devel] " Mikhail Zabaluev
2002-03-07 13:36 ` Dmitry V. Levin
2002-03-07 14:23   ` Mikhail Zabaluev [this message]
2002-03-07 14:38     ` [devel] " Anton Farygin
2002-03-07 14:58     ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020307142336.GA11778@mhz.mikhail.zabaluev.name \
    --to=mhz@alt-linux.org \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git