Running as a Detached Process
There are several ways that you can run the Batch Facility as a detached process. For example, you can run the Batch Facility:
- As a background process
on UNIX. Use & on the command line to run the Batch Facility as a background process.
With the Batch Facility running in the background, you can use your
terminal for other tasks. For example, to run the Batch Facility in
the background, use this command at the prompt:
statisticsb -f /home/users/myhome/syntaxjobs/bank.sps -type text -out /home/users/myhome/output/bank.txt &
- While you are logged
off from UNIX. Use nohup on the command line to allow the Batch Facility to continue running
when you are logged off of the terminal. This is useful for jobs that
take a long time. You can run them without leaving your terminal open.
For example, to run the Batch Facility while you are logged off, use
this command at the UNIX prompt:
nohup statisticsb -f /home/users/myhome/syntaxjobs/bank.sps -type text -out /home/users/myhome/output/bank.txt
- As a scheduled process. On UNIX, use at or cron to run the Batch Facility at whatever time and date you specify. See the manual pages of your UNIX system for details. On Windows, you can use the at command or you can configure a scheduled task with the Scheduled Tasks control panel.