Forcing cleanup code in shell scripts?

Gordon Marx gcmarx at gmail.com
Thu Nov 3 13:01:59 EST 2005


On 03/11/05, Josh ChaitinPollak <josh at offthehill.org> wrote:
> Is it possible to trap Ctrl-C and run some cleanup code in a shell
> script? How would I do that?

Our script dude says "use trap". You should really look into getting a
script dude, they're awesome to have around when you CBA. :--)

Gordon
--
Gordon Marx
gcmarx at gmail.com



More information about the Discuss mailing list