From owner-freebsd-doc@FreeBSD.ORG Wed Nov 12 17:00:38 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6B2E16A4CE for ; Wed, 12 Nov 2003 17:00:38 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA4DB43FF2 for ; Wed, 12 Nov 2003 17:00:36 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hAD10aFY046320 for ; Wed, 12 Nov 2003 17:00:36 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id hAD10aYJ046319; Wed, 12 Nov 2003 17:00:36 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 12 Nov 2003 17:00:36 -0800 (PST) Resent-Message-Id: <200311130100.hAD10aYJ046319@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Pelleg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6472A16A4CE for ; Wed, 12 Nov 2003 16:52:51 -0800 (PST) Received: from gw.pelleg.org (gw.pelleg.org [205.201.13.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F4BF43FA3 for ; Wed, 12 Nov 2003 16:52:50 -0800 (PST) (envelope-from dpelleg@cs.cmu.edu) Received: from lank.here (lank.wburn [192.168.3.41]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "gw.pelleg.org", Issuer "Dan Pelleg" (verified OK)) by gw.pelleg.org (Postfix) with ESMTP id 312805A4E for ; Wed, 12 Nov 2003 19:52:48 -0500 (EST) Received: by lank.here (Postfix, from userid 7675) id 0951F75E; Wed, 12 Nov 2003 19:52:44 -0500 (EST) Message-Id: <20031113005244.0951F75E@lank.here> Date: Wed, 12 Nov 2003 19:52:44 -0500 (EST) From: Dan Pelleg To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/59240: handbook update: linux MATLAB X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dan Pelleg List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 01:00:39 -0000 >Number: 59240 >Category: docs >Synopsis: handbook update: linux MATLAB >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Nov 12 17:00:36 PST 2003 >Closed-Date: >Last-Modified: >Originator: Dan Pelleg >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: >Description: Exit script to solve a problem of unquittable MATLAB. Contributed by Richard Winkel. >How-To-Repeat: >Fix: --- en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml.orig Wed Nov 12 18:11:54 2003 +++ en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml Wed Nov 12 19:30:21 2003 @@ -859,21 +859,52 @@ + + Creating a &matlab; Shutdown Script + + The following is needed to solve a problem with &matlab + not exiting correctly. + + + + Create a file + $MATLAB/toolbox/local/finish.m, and + in it put the single line: + + ! $MATLAB/bin/finish.sh + + The $MATLAB is literal. + + In the same directory, you will find the files + finishsav.m and + finishdlg.m, which let you save + your workspace before quitting. If you use either of + them, insert the line above immediately after the "save" + command. + + + Create a file + $MATLAB/bin/finish.sh, which will + contain the following: + + #!/usr/compat/linux/bin/sh +(sleep 5; killall -1 matlab_helper) & +exit 0 + + + Make the file executable: + + &prompt.root; chmod +x $MATLAB/bin/finish.sh + + + + + Using &matlab; At this point you are ready to type - matlab and start using it. Note that the - version of &java; shipped with - &matlab; does not work well under - &os;. It will make it hard to quit - &matlab; and you will have to - kill -9 it. If you do not use - &java; at all, you can avoid this - nuisance by starting - &matlab; with the - - switch. + matlab and start using it. >Release-Note: >Audit-Trail: >Unformatted: