McIDAS User's Guide
Version 2016.1
[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]
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'
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]