DOS(1) — USER COMMANDS
NAME
dos − SunView window for IBM PC/AT applications
SYNOPSIS
dos [ −b ] [ −s ] [ −p config ] [ −w ] [ −c command ]
AVAILABILITY
Sun386i systems only.
DESCRIPTION
A window created by dos looks and acts like the screen of an IBM PC/AT or compatible computer running MS-DOS 3.3, except that it has expanded features. It allows sharing of files with SunOS, copying and pasting data between windows, and piping and redirection. You may run any reasonable number of DOS windows simultaneously.
Shrinking or expanding the window will not change the contents to accomodate the new size.
USAGE
Menu
The menu available in the window by pressing the right mouse button allows various controls over the work in the window. Edit allows you to copy and paste between windows. The Show Screen menu item selects the display type emulation (either Hercules, CGA, or Monochrome). The Mouse menu item allows you to control whether the mouse operates like a Microsoft or compatible mouse or in normal SunView fashion. The Send to printer menu item allows you to send queued jobs to the print spooler. Device allows you to select which disks and other devices will be used and which are to be considered write only. The Reboot DOS Window item is equivalent to restarting the window. This can also be accomplished by pressing the CONTROL, ALT, and DELETE keys simultaneously.
Printer Assignments
DOS uses three printer designations: LPT1, LPT2, and LPT3. The default settings are: files sent to LPT1 go to the default system printer. Files sent to LPT2 are appended to the file ~/pc/lpt2 in your home directory. Epson-compatible print jobs can be sent to LPT3 to yield Epson FX-80 quality output on a Postscript printer.
Drives
Drive A The Sun386i 3-1/2" diskette drive, used for reading PC format diskettes onto the hard disk and writing data to be stored on floppy. Drive A is not accessible across a network.
Drive C A virtual disk stored in a file in /home/yourname/pc. Files written to drive C cannot be accessed from SunOS. Drive C is generally intended for storage of applications and copy protected software but not data.
Drives D through S Equivalents of SunOS directories. They can be accessed from either DOS or SunOS, and can contain any number of files and other directories. The SunOS directories referenced by DOS drives other than D, H, and R (described below) are user-defined (using the DOS EXTEND command).
Drive D The current SunOS directory when the DOS window was opened. May subsequently be changed to any other directory.
Drive H The home directory of the user who opened the window. May subsequently be changed to any directory in the user’s home directory tree.
Drive R Initially equivalent to the root directory of SunOS
File Sharing between SunOS and DOS
File names under DOS consist of 8 characters, a period, and a 3 character extension. When a SunOS filename does not comply with these rules, its name is modified by placing a tilde (~) in an appropriate location so that the file name conforms to DOS specifications while remaining unique. It is recommended that filenames conform to DOS requirements for files to be used in both SunOS and DOS.
Because SunOS and DOS use different conventions for carriage returns, dos2unix and unix2dos are provided to convert text files between the two formats.
Command Sharing between SunOS and DOS
The /etc/dos/unix directory contains a list of SunOS commands accessible from DOS. Other SunOS commands not in this list can be executed from DOS with the command ‘unix command’. SunOS commands always use SunOS filename conventions and DOS commands always use DOS filename conventions, regardless of whether either type of command is executed from SunOS or DOS. Only DOS commands can use drives A and C.
OPTIONS
−b Boots (loads) DOS and opens a window using the AUTOEXEC.BAT and CONFIG.SYS files instead of ~/pc/.quickpc. A DOS sign-on message is displayed in the window.
−s Boot DOS and save a new .quickpc file under the name specified on the SAVE line in ~/pc/.setup.pc. Use this option after making changes to drive C AUTOEXEC.BAT or CONFIG.SYS. Exits DOS after saving the .quickpc file.
−p config
Loads an alternate file instead of setup.pc.
−c command
Executes the given DOS command in the newly created window.
−w Runs DOS text-only commands and applications in the current SunView Commands window.
ENVIRONMENT
DOS_PRINTER
The value of this environment variable indicates the timeout (in seconds) for printing. A value of 20 (the default) indicates that jobs will be sent to the UNIX print spooler after 20 seconds of no printing activity from DOS to that printer. A value of 0 indicates that the spooler must be flushed manually from the menu in the window.
DOSLOOKUP
If on, this environment variable indicates that a command should be tried as a DOS command if not recognized by SunOS. If DOS supports the command, a DOS window is created and the command executed in that window. If the command does not exist, the normal SunOS error message results.
FILES
/etc/dos/unix Files in this directory indicate which SunOS commands are accessible from DOS.
/etc/dos/defaults/.quickpc
Default .quickpc file copied into user’s home PC directory (~/pc) the first time a DOS window is started. Not used by DOS in this location.
/etc/dos/defaults/setup.pc
Default setup.pc file copied into user’s home DOS directory (~/pc) the first time a DOS window is started. Not used by DOS in this location.
/etc/dos/defaults/boards.pc
Stores information about IBM PC/XT/AT -compatible boards installed in your system.
/etc/dos/defaults/C: Default drive C file copied into a user’s home PC directory the first time a DOS window is started.
~/pc/autoexec.bat Contains drive assignments, search paths, and other startup commands. Searched after C:AUTOEXEC.BAT and D:AUTOEXEC.BAT.
C:AUTOEXEC.BAT Contains commands to access system printers and special drives. You should not need to change the AUTOEXEC.BAT on drive C. Put your changes in the AUTOEXEC.BAT on drive H (in your home directory). C:AUTOEXEC.BAT is not accessible from SunOS.
D:AUTOEXEC.BAT If an AUTOEXEC.BAT file exists in the current directory, DOS tries execute faster running C:AUTOEXEC.BAT.
C:CONFIG.SYS Specifies device drivers and other system parameters. C:CONFIG.SYS is not accessible from SunOS.
~/pc/setup.pc Defines printers, standard PC devices, and drive C. One or more of these files may exist, under various names which you assign.
~/pc/.quickpc An image of DOS as last saved with dos -s, including all DOS environment variables and drivers that were in effect at that time. DOS normally reads this file at startup.
~/pc/C: A user’s personal copy of drive C.
DIAGNOSTICS
Cannot save filename quick-start file.
The dos command was unable to save the specified quick-start file. Check the SAVE setting in your PC setup file (normally ~/pc/setup.pc) Also check file access permissions on the specified quick-start file.
Cannot load filename quick-start file.
dos was unable to read the specified quick-start file. Check the SAVE setting in your setup.pc file. Also check file access permissions on the specified quick-start file.
Possible software incompatibility. Unsupported 286 instruction instruction at address.
Possible software incompatibility. Unsupported 386 instruction
Possible software incompatibility. Segment wrap.
Possible software incompatibility. Two-byte opcode not
The application you are running was written specifically for 80286 or 80386 machines. Software run from a DOS window must be compatible with 8086 systems.
Copying default configuration files into your
This is the first time you have run the dos command. A ~/pc directory is being set up, and DOS -related files are being copied into it.
Another DOS window already has access to device
Your PC configuration file (normally ~/pc/setup.pc) is requesting access to a physical device that another DOS window is using.
Port number number out of range for board board.
The port number specified in the /etc/dos/defaults/boards.pc is invalid.
Second port number number out of range for board board.
The port number specified in the /etc/dos/defaults/boards.pc is invalid.
IRQ value number out of range for board board.
The interrupt level specified in the /etc/dos/defaults/boards.pc is invalid.
Interrupt level number is used by DOS to support the device
The interrupt level specified in the /etc/dos/defaults/boards.pc conflicts with an interrupt value currently being used by either a physical or emulated DOS device.
I/O address range address - address requested for board already in use by device.
The address range specified in the /etc/dos/defaults/boards.pc conflicts with range currently being used by either a physical or emulated DOS device.
Cannot share device with a hardware interrupt.
A shared device specified in the /etc/dos/defaults/boards.pc was also assigned an interrupt level in this file. Shared devices cannot be assigned interrupt levels.
Couldn’t find board in boards.pc.
A file specified in the PC setup file (normally ~/pc/setup.pc) is not listed in the /etc/dos/defaults/boards.pc file. Check the setup.pc file, or add an entry for the board in boards.pc.
SEE ALSO
Sun386i User’s Guide
Sun386i Advanced Skills
DOS Reference Manual
Sun Release 4.0 — Last change: 19 February 1988