Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Break a script within a script
@ 2000-12-19 13:24 marinto
  2000-12-19 16:36 ` Herve Gautier
  0 siblings, 1 reply; 2+ messages in thread
From: marinto @ 2000-12-19 13:24 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Break a script within a script
  2000-12-19 13:24 Break a script within a script marinto
@ 2000-12-19 16:36 ` Herve Gautier
  0 siblings, 0 replies; 2+ messages in thread
From: Herve Gautier @ 2000-12-19 16:36 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-19 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-19 13:24 Break a script within a script marinto
2000-12-19 16:36 ` Herve Gautier

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