Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Herve Gautier <gautier@syseca.fr>
Subject: Re: Break a script within a script
Date: Tue, 19 Dec 2000 17:36:50 +0100	[thread overview]
Message-ID: <3A3F8EA2.3405935A@syseca.fr> (raw)
In-Reply-To: 91nnj1$o62$1@nnrp1.deja.com

marinto wrote:
> 
> If you run a ksh script from within another ksh script, is it possible
> to continue in the "main script" and only break the "sub script" when
> CTRL-C (or any other escapecode?) is pressed?
> 
> /Marinto
> 
> Sent via Deja.com
> http://www.deja.com/

Hi.

Juste look at the ksh man.
I think you can use in you subshell (I have actually never tried)
something like that :
function ()
{
	trap "return 0" EXIT
	...
	trap - EXIT
}

-- 
GAUTIER Herve (R.V)
professional email : herve.gautier@syseca.thomson-csf.com


      reply	other threads:[~2000-12-19 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-19 13:24 Break a script within a script marinto
2000-12-19 16:36 ` Herve Gautier [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox