Name

batch

Synopsis

batch [options]

Executes commands entered on standard input. Ends with EOF. Unlike at, which executes commands at a specific time, batch executes commands one after another (waiting for each one to complete). This avoids the potentially high system load caused by running several background jobs at once. See also at.

batch is equivalent to issuing the command at -q b now.

Options

-f file

Execute commands listed in file.

-m

Send mail to user after job is completed (if an MTA such as sendmail is configured to run).

Example

% batch
sort in > out
troff -ms 
                     bigfile > bigfile.ps
EOF

Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.