From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,215d1e974f3270aa X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-12-19 08:36:57 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!rain.fr!news.syseca.fr!not-for-mail From: Herve Gautier Newsgroups: comp.unix.tru64 Subject: Re: Break a script within a script Date: Tue, 19 Dec 2000 17:36:50 +0100 Organization: SYSECA Message-ID: <3A3F8EA2.3405935A@syseca.fr> References: <91nnj1$o62$1@nnrp1.deja.com> Reply-To: herve.gautier@syseca.thomson-csf.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.syseca.fr 977243812 11157 192.168.16.182 (19 Dec 2000 16:36:52 GMT) X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4m) X-Accept-Language: en Xref: supernews.google.com comp.unix.tru64:1252 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