From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 17:18:07 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0D016A417 for ; Tue, 7 Aug 2007 17:18:07 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 1F8FE13C46E for ; Tue, 7 Aug 2007 17:18:07 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by py-out-1112.google.com with SMTP id a73so3313506pye for ; Tue, 07 Aug 2007 10:18:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=fcH/7DNTpysReohuBzm6rba9V4U46/4vkrXqjBLD/0hkgLSmxiCxj2v5AfmsqqLrRQpIMuNqsEre8mSoux0fOs6RJ6yy1i1GWaBljJsmzcSgnKg+AdNVSmZ9bUz8Tf4/ua2xotKmsrNIt9ooFEmzbynInWoPGNzhQM1hHPxGGas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=I2zMmo5oQo+QySudpPG80sOzshVnSjkGtht2C8GxppZ7spEvv8nRKd0YadzDfgtHMXKmTgeKX7x58cquVHAEzMciYFg7lDqkjPALwGnkFryD/KwD5wJ+6uKG4rfHNkCrWnJcAnhJlH5n7YPEUCoH/huixJ/Oxua75k5jJiLhktE= Received: by 10.35.87.8 with SMTP id p8mr11977595pyl.1186507086172; Tue, 07 Aug 2007 10:18:06 -0700 (PDT) Received: from ?10.0.0.14? ( [74.95.66.25]) by mx.google.com with ESMTPS id f78sm12889377pyh.2007.08.07.10.18.05 (version=SSLv3 cipher=OTHER); Tue, 07 Aug 2007 10:18:05 -0700 (PDT) In-Reply-To: <20070807210914.P84583@obelix.home.rakhesh.com> References: <001201c7d906$58e8ee40$180ca8c0@arm.synisys.com> <1F65B63B-94D0-4AD5-A128-D5C03875E052@gmail.com> <20070807210914.P84583@obelix.home.rakhesh.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <006F1C69-C0CC-4837-B22D-CBA39B1067D8@gmail.com> Content-Transfer-Encoding: 7bit From: Eric Crist Date: Tue, 7 Aug 2007 12:18:01 -0500 To: Rakhesh Sasidharan X-Mailer: Apple Mail (2.752.3) Cc: Narek Gharibyan , freebsd-questions@freebsd.org, 'Xihong Yin' Subject: Re: restart network without shutdown X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 17:18:07 -0000 On Aug 7, 2007, at 12:11 PMAug 7, 2007, Rakhesh Sasidharan wrote: > > Eric Crist wrote: > >> Install screen from ports, run it from within screen. >> >> You'll still get disconnected, but you should be able to reconnect >> after it's done. Screen will allow the script to complete, >> whereas your ssh session is killing it half/part way through... >> >> HTH >> > > Just curious -- how come screen works in such situations? I > recollect someone else too recommending screen a few days ago > (instead of "watch" to connect to another terminal) coz it doesn't > get cut. The SSH session in which screen runs gets disconnected, > but screen still works ... useful! > Screen can detach and run in the background. Processes which start from within screen don't get killed, because, screen, the parent process, is still running. The reason the script dies when you get d/ c'd is that your shell, the parent process, has died. HTH Eric Crist