all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: David Karr <davidmichaelkarr@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to avoid having shell scripts which fail from killing Emacs shell?
Date: Tue, 23 Jun 2009 19:26:18 +0200	[thread overview]
Message-ID: <32674A97-CDA2-41FF-8ACD-3018ABE8D291@Web.DE> (raw)
In-Reply-To: <40c8cb64-0eda-40d5-8d5a-547074c692de@q3g2000pra.googlegroups.com>


Am 23.06.2009 um 17:06 schrieb David Karr:

> Note that I'm specifically stating "at the end of the script". If I
> put a print statement in the script after the call to Java, it prints
> the line, finishes the script, then kills the shell.

Can you give us a sketch of your script, like:

	#!/bin/bash
	<some variable settings>
	pushd <some working directory>
	# here the Java code starts with:
		<a cup of hot Java?>
	# the Java function to read:
	...
	# Here the Java code ends:
	<code>
	<shell code>
	# Final statement:
	...
	<shell script ends here with a newline>

Actual lines and line numbers (shell-command-on-region with pr -n - 
l9999) won't be bad. Maybe it's possible from seeing the code to see  
a design flaw or the actual cause ... Could be a log from your  
*shell* can provide further information.

You can also invoke your script as

	bash -x ./script.name

or put a line

	set -x

near the beginning (line #2ff) into it to see bash execute the lines.  
This might give additional insight.

--
Greetings

   Pete

Upgraded, adj.:
	Didn't work the first time.







  reply	other threads:[~2009-06-23 17:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 23:03 How to avoid having shell scripts which fail from killing Emacs shell? David Karr
2009-06-19 23:06 ` David Karr
2009-07-10  2:21   ` David Combs
2009-06-20  9:06 ` Peter Dyballa
     [not found] ` <mailman.987.1245488796.2239.help-gnu-emacs@gnu.org>
2009-06-22 16:43   ` David Karr
2009-06-22 18:47     ` Peter Dyballa
2009-06-23  8:54     ` Pascal J. Bourguignon
2009-06-23 13:15       ` David M. Karr
2009-06-23 15:56         ` Peter Dyballa
     [not found]       ` <mailman.1141.1245762947.2239.help-gnu-emacs@gnu.org>
2009-06-23 15:06         ` David Karr
2009-06-23 17:26           ` Peter Dyballa [this message]
2009-06-22 20:21 ` David Karr
2009-06-22 22:49   ` Peter Dyballa
     [not found]   ` <mailman.1102.1245710994.2239.help-gnu-emacs@gnu.org>
2009-06-22 23:08     ` David Karr
2009-06-22 23:38     ` David Karr

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=32674A97-CDA2-41FF-8ACD-3018ABE8D291@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=davidmichaelkarr@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.