| dev-det | Index Level | dev-remov |
| Syntax | dev-make -t type {-n number} {-a arg{,arg} {-a arg{,arg} ... }} |
| Category | TCL |
| Type | Verb |
| Description |
adds an entity to the system.
This command is normally used to add devices to the system. The most common usage is to create a serial device to be used with the FlashBASIC GET and SEND statements, even if there is no Pick process connected to the device. type Entity type: 'pib', 'serial', 'tcp', 'udp', 'telnet', 'queue'. number Entity number. If not specified, the system allocates a number. arg Optional arguments. There may be more than one '-a' option, or several arguments can be specified within one '-a' clause, separated by commas. The arguments depend on the type (see below). Arguments: serial: Unix device name, between quotes. When the entity is successfully created, an entry is added to the 'devs' file, but NOT to the 'devs,init' file. See the description of the file 'devs' for more details. |
| Options | |
| See Also | entity devs dev-remov |
| Example |
dev-make -t serial -n 100 -a '/dev/tty32'
Create the serial device 's100' associated to the Unix device '/dev/tty32'. The device is reprogrammed 'Pick way', i.e., in raw mode, no echo. The hardware characteristics (baud rate, etc...) are unchanged. When the device is successfully created, the newly created device can be attached and used with FlashBASIC SEND and GET statements. The hardware characteristics can be changed with the Pick 'set-port' command, using the full entity ID 's100', only once the device has been attached, because the device is not actually opened when the Pick entity is created, but only at attach time. |
| Warnings |
This command can be run only on the "dm" or "sysprog" account and is available only on Unix implementations 6.1 and later.
The current version supports only creating a 'serial' device. |
| Compatibility | AP 6.1 D3/Unix |
| dev-det | Index Level | dev-remov |