O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required