blank.gif (43 bytes)

Church Of The
Swimming Elephant

Index | Description | Usage | Options | Variables | Hints | Bulletproof

trap [[flags] signals]

Flags Description
-code Uses the return code of the command in place of whatever code Tcl was about to return when the command originally started running.
-interp Causes the command to be evaluated using the interpreter active at the time the command started running rather than when the trap was declared.
-name Causes the trap command to return the signal name of the trap command currently being executed.
-max Causes the trap command to return the largest signal number that can be set.

Signals Description
SIGHUP hangup
SIGINT interrupt
SJGPIPE pipe write failure
SIGTERM software termination
SIGSTOP stop (really “suspend")
SIGTSTP keyboard stop
SIGCONT continue
SIGCHLD child termination
SIGWINCH window size change
SIGUSR1 user-defined
SIGUSR2 user-defined

This material is excerpted from the O'Reilly book "Exploring Expect" by Don Libes, and can also be found in the manpage on many UNIX platforms. 



Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609