The trap Command

The trap command can be used to block certain signals or to cause specific commands to be executed when those signals are received.

This can be used to prevent interrupts from halting scripts or to clean up files when a script is interrupted.  

trap Signals

trap Examples


A Bit More on I/O


The at Command

at Command Example

The “at> ”  prompt will appear while you are entering the command(s).

at Command Times

at Command Terminology

The “at” command understands a number of terms including:

Listing "at" Jobs

You can list your currently scheduled “at” jobs with either of the following commands:

Removing "at" Jobs

Assuming that you have an at job called “7”, you can remove it using either of the following commands: