McIDAS User's Guide
Version 2014.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


DEV

This keyword specifies the destination device of text output generated by a command. The format of the DEV keyword is shown below.

DEV=device filename file_option
DEV=device 'print_command'

device

1-, 2- or 3-letter string indicating destination for each of the three output types (standard, error, and debug); the first letter directs standard (non-error) output, the second letter directs error output, the third letter directs debug output; do not specify both F and T together, for example, DEV=FTT; the letters below are valid options (default=CCN)

 

C

sends output to the text frame

 

D

sends output to the desktop; valid only on Windows 7 workstations; see the last example below

 

F

sends output to an LW file

 

N

suppresses output

 

P

sends output to the default printer

 

T

sends output to a text file

filename

the name of the LW or text file for saving output; specify only when device includes F or T

file_option

A

appends the output to the specified file

 

R

replaces the output in the specified file (default)

'print_command'

Unix print command; valid only when device includes a P; if 'print_command' is not specified, then the value of the MCPRINT environment variable is used; if 'print_command' is not specified and MCPRINT is not set, then the default lpr command settings are used

See the FRMSAVE command for information about printing image and graphics output.

Below are six examples of using the DEV keyword.

IMGLIST MY/DATA.ALL DEV=NNN

This entry displays no output text.

IMGLIST MY/DATA.ALL DEV=CCC

This entry directs all text output (standard, error and debug) to the text frame.

IMGLIST MY/DATA.ALL DEV=FFF IMAGES

This entry directs all text output (standard, error, and debug) to the LW file IMAGES.

IMGLIST MY/DATA.ALL DEV=NC

This entry directs error messages to the text frame. Standard and debug messages are suppressed.

IMGLIST MY/DATA.ALL DEV=P 'lpr -Plp10ps'

This entry directs standard output text to the printer named lp10ps.

IMGLIST MY/DATA.ALL DEV=D

This entry is valid only in McIDAS-X on Win7 workstations. The entry directs standard output text to the desktop. It appears on the desktop as a new icon with the name IMGLIST Output.txt. You can manipulate the new icon like other desktop icons. For example, you can double-click it to open the file, drag it to the Printer icon to print its contents, or drag it to the Recycle Bin to remove it from the desktop.

Note: By default, the desktop is defined as the \Desktop folder of the directory specified in the system environment variable USERPROFILE (e.g., if USERPROFILE is set to C:\Users\johndoe, then DEV=D directs the output to C:\Users\johndoe\Desktop). If your desktop directory is somewhere else you can override the default by defining the environment variable MCDESKTOP and setting its value to your desktop directory. When doing so, the backslashes must be escaped (doubled) and an ending backslash is required, e.g., export MCDESKTOP; MCDESKTOP=H:\\Users\\mcuser\\Desktop\\. If you want to set the MCDESKTOP environment variable each time you log on to your account, add the export MCDESKTOP; MCDESKTOP=... command above to your $HOME/.mcenv file and add the line .  $HOME/.mcenv  to your $HOME/.profile (ksh) or $HOME/.cshrc (csh) file. Be sure to leave a space between the period (.) and $HOME.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]