Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix trap and onitr command

Quick links

About trap, onintr
Syntax
Examples
Related commands
Linux / Unix main page

About trap and onintr

Shell built-in functions to respond to (hardware) signals.

Syntax

trap [ argument n [ n2] ]

onintr [ -| label ]

Examples

trap 'rm -f /tmp/xyz$$; exit' ERR EXIT - on error or exit delete a temporary file created during command execution.

Related commands

csh
exit
ksh
sh

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope