On 18 Jun 2003, R. K. Owen Ph D. wrote:
> Hello Ray:
> The printouts are necessarily sent to stderr, because the module command
> is an alias to "eval `...`". Anything sent to stdout then gets executed.
> Anyways, to capture the output put the command in parenthesis
> for example do the following:
> csh:
> (module avail)|& more
> sh:
> (module avail) 2>&1 | more
^ ^
The parentheses are unnecessary in sh/ksh/bash/zsh.
Ted
--
Ted Stern Applications Group
Cray Inc. office: 206-701-2182
411 First Avenue South, Suite 600 cell: 206-383-1049
Seattle, WA 98104-2860 FAX: 206-701-2500
Frango ut patefaciam -- I break that I may reveal
(The Paleontological Society motto, equally apropos for debugging)
|