ADSM-L

Re: DSMADMC Output Format

1999-08-26 01:44:59
Subject: Re: DSMADMC Output Format
From: Paul Fielding <paul.fielding AT HOME DOT COM>
Date: Wed, 25 Aug 1999 23:44:59 -0600
As long as you're running the script from within a real shell (ie a telnet
or xterm session, or from a console), you can try the '-outfile' parameter
instead of redirecting the output.

The thing with dsmadmc is that it tries to format the output to the width of
the console you're using. For example, if using xterm to run dsmadmc, do a
query, then expand the window so it's REALLY wide, and try it again.  it'll
adjust.  When you redirect output to a file, for some reason adsm ignores
the width of your console and just goes into 'wide' mode.  With the -outfile
flag, the formatting stays the same as it would appear in your current
flag, the formatting stays the same as it would appear in your current
window.

The only catch to this is that if you try to run the script from crontab
you'll get the wide output, since cron doesn't have a console, it runs from
'nowhere'....

Another alternative is to write a perl script that munges the the hyphenated
items back into a single line...

Paul

<Prev in Thread] Current Thread [Next in Thread>