Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!purdue!mentor.cc.purdue.edu!mace.cc.purdue.edu!abe From: abe@mace.cc.purdue.edu (Vic Abell) Newsgroups: comp.unix.aix Subject: Re: AIX 3.1, script and intr Message-ID: <5306@mace.cc.purdue.edu> Date: 10 Aug 90 13:42:30 GMT References: <5289@mace.cc.purdue.edu> <9008100210.AA23730@mindcrf.mindcraft.com> Reply-To: abe@mace.cc.purdue.edu (Vic Abell) Organization: Purdue University Lines: 13 In article <9008100210.AA23730@mindcrf.mindcraft.com> karish@mindcrf.UUCP writes: >In article <5289@mace.cc.purdue.edu> abe@mace.cc.purdue.edu (Vic Abell) writes: >>Does anyone know how to keep the intr character (^C in my case) from >>terminating script? > >For sh or ksh: > > trap "" 2 I guess I wasn't clear enough in my original posting. I was not asking how to protect shell scripts; I was asking how to protect the script(1) program from terminating when I type an intr character to a program whose output I am capturing in a file via script(1).