# startsched command

The startsched command starts the phantom
scheduler, which itself is a phantom process. The scheduler is normally
started on the last phantom port of the system.

## Syntax

```
startsched {(options}
```

## Parameter(s)

| options | port.number | Designates the port number on which to start the phantom scheduler. If not specified, the scheduler is run from the last phantom port. |
| --- | --- | --- |
| I | Initializes the %R item in the dictionary of the jobs file. This has the effect of not releasing any phantom processes that need wrapping up. | |
| r | Kills and restarts the underlying thread for a job when a the job completes. | |
| z | Removes any phantom jobs in the queue by clearing the %Q item in the dictionary of the jobs file. | |

## See also

- [end command (TCL commands)](https://d3codex.com/tcl/end-command-tcl-commands/)
- [jobs file](https://d3codex.com/systemfiles/jobs-file/)
- [list-jobs macro](https://d3codex.com/tcl/list-jobs-macro/)
- [Background/Phantom process overview](https://d3codex.com/backgroundphantomprocess/background-phantom-process-overview/)
- [phantom-reset command](https://d3codex.com/tcl/phantom-reset-command/)
- [phantom-status command](https://d3codex.com/tcl/phantom-status-command/)
- [Port number](https://d3codex.com/definitions/port-number/)
- [start.ss command](https://d3codex.com/tcl/start-ss-command/)
- [stopsched command](https://d3codex.com/tcl/stopsched-command/)
- [where command](https://d3codex.com/tcl/where-command/)
- [z command (Background/Phantom process commands)](https://d3codex.com/backgroundphantomprocess/z-command-background-phantom-process-commands/)

---
Source: https://d3codex.com/backgroundphantomprocess/startsched-command/ - part of the D3Codex reference.
