Shell Commands/Eject

From MorphOS Library

< Shell Commands

Eject - Simple command to eject CD media

DEVICE, UNIT/N, LOCK/S, UNLOCK/S, EJECT/S, LOAD/S, TOGGLE/S, JIFFIES/N

DEVICE  - The name of the device to eject
UNIT    - The unit number of the device to eject
LOCK    - Locks the device and prevents ejecting by other means
UNLOCK  - Unlocks the device and allows ejecting again
EJECT   - Ejects media from the device
LOAD    - Loads media to the device
TOGGLE  - Toggles between ejecting and loading of the device
JIFFIES - 

The default option is to toggle the found CD drive.