From owner-freebsd-questions@FreeBSD.ORG Thu Mar 25 18:48:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F99416A4CE for ; Thu, 25 Mar 2004 18:48:28 -0800 (PST) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFC0743D64 for ; Thu, 25 Mar 2004 18:48:27 -0800 (PST) (envelope-from mnsan11@earthlink.net) Received: from h-68-165-56-228.chcgilgm.dynamic.covad.net ([68.165.56.228] helo=sysadmin.ods.org) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1B6hOU-0004nW-00; Thu, 25 Mar 2004 18:48:27 -0800 Received: from earthlink.net (VICE [192.168.1.33]) by sysadmin.ods.org (Postfix) with ESMTP id 93C042D1E8D; Thu, 25 Mar 2004 20:49:45 -0600 (CST) Message-ID: <406399F1.6010909@earthlink.net> Date: Thu, 25 Mar 2004 20:48:17 -0600 From: Elvedin User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Storey References: <20040326092248.4845573e.y2kbug@ms25.hinet.net> In-Reply-To: <20040326092248.4845573e.y2kbug@ms25.hinet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-questions@freebsd.org Subject: Re: log off with process running X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 02:48:28 -0000 Robert Storey wrote: >I know this has got to be a basic question, but strangely enough I haven't been >able to find the answer anywhere... > >Suppose I'm at home with a dial-up connection to the Internet. At the school >where I work we have a server running FreeBSD with a full-time connection (T1 >line). So from home, I log onto the school's server with ssh, and start a >process that will run for a long time, maybe something like this: > > wget ftp://ftp.freebsd.org/pub/bigfile.iso > >OK, that download might run for hours. I don't want to stay connected for hours, >I want to log off and hang up the modem. The question is, how to do so? With the >above process running, I can't even get back to the command line to type "exit" >(and wouldn't typing "exit" kill any process I'm running?). Ditto if I hit >ctrl-c. I suppose I could just hang up the modem, but that's not elegant. > >OK, I'm not a total ignoramus - I suspect that maybe I could put the job in the >background by either hitting ctrl-z while it's running, or maybe starting it >with the "&" parameter. But if I log out from the server with "exit", will that >kill the running processes? The answer to this eludes me - I haven't found >anything said about this in the various documents I've read about ssh. > >So what is the elegant solution? > >regards, >Robert >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > I'm surprised this hasn't been mentioned, but why not try screen? It's made for precisely this reason. -- Elvedin Trnjanin sysadmin.ods.org ODS.org