View | Details | Raw Unified | Return to bug 59240
Collapse All | Expand All

(-)en_US.ISO8859-1/books/handbook/linuxemu/chapter.sgml (-11 / +42 lines)
Lines 859-879 Link Here
859
      </tip>
859
      </tip>
860
    </sect2>
860
    </sect2>
861
861
862
    <sect2>
863
      <title>Creating a &matlab; Shutdown Script</title>
864
865
      <para> The following is needed to solve a problem with &matlab
866
        not exiting correctly.</para>
867
868
      <procedure>
869
	<step>
870
	  <para>Create a file
871
            <filename>$MATLAB/toolbox/local/finish.m</filename>, and 
872
            in it put the single line:</para>
873
874
	  <programlisting>! $MATLAB/bin/finish.sh</programlisting>
875
876
          <note><para>The $MATLAB is literal.</para></note>
877
878
          <tip><para>In the same directory, you will find the files
879
              <filename>finishsav.m</filename> and
880
              <filename>finishdlg.m</filename>, which let you save
881
              your workspace before quitting. If you use either of
882
              them, insert the line above immediately after the "save"
883
              command.</para></tip>
884
    </step>
885
    <step>
886
	  <para>Create a file
887
            <filename>$MATLAB/bin/finish.sh</filename>, which will
888
            contain the following:</para>
889
890
	  <programlisting>#!/usr/compat/linux/bin/sh
891
(sleep 5; killall -1 matlab_helper) &
892
exit 0</programlisting>
893
    </step>
894
    <step>
895
	    <para>Make the file executable:</para>
896
897
	    <screen>&prompt.root; <userinput>chmod +x $MATLAB/bin/finish.sh</userinput></screen>
898
899
    </step>
900
      </procedure>
901
    </sect2>
902
862
    <sect2 id="matlab-using">
903
    <sect2 id="matlab-using">
863
      <title>Using &matlab;</title>
904
      <title>Using &matlab;</title>
864
905
865
      <para>At this point you are ready to type
906
      <para>At this point you are ready to type
866
	<command>matlab</command> and start using it.  Note that the
907
	<command>matlab</command> and start using it.</para>
867
	version of <application>&java;</application> shipped with
868
	<application>&matlab;</application> does not work well under
869
	&os;.  It will make it hard to quit
870
	<application>&matlab;</application> and you will have to
871
	<command>kill -9</command> it.  If you do not  use
872
	<application>&java;</application> at all, you can avoid this
873
	nuisance by starting
874
	<application>&matlab;</application> with the
875
	<option>-nojvm</option>
876
	switch.</para>
877
    </sect2>
908
    </sect2>
878
  </sect1>
909
  </sect1>

Return to bug 59240