Hi Donald,

thanks for your suggestions!
Let me start to discuss the "pager" first:

On Wed, Oct 21, 2009 at 09:38:54AM -0700, Donald Russell wrote:
> First, let me say I think this whole terminal server thing is
> fantastic. I would like to offer some suggestions...
Thanks!

> 2c -
> add an option in ts-shell to turn the pager off for the list command.
> list-pager=no
> list-pager=<path to pager program>
> Reason:
> "It's just wrong"(TM) :-) Though because ts-shell has such limited
> access to the rest of the system I understand it may be more difficult
> to allow the user to do their own piping ....
> But in our (and probably lots) of situations, the list isn't really
> that long, especially when using regex.

ts-shell has limited access to the terminal server system itself and a
default pager is necessary for long lists of systems.  The pager program
can be specified as an enviroment variable. (If the PAGER env var is empty
or not set, ts-shell uses less).

Setting an environment variable for a login shell is a bit tricky, so having
a configuration option and, perhaps, a "pager" command makes sense.

However, it is possible to set or modify environment variables using the
pam_env PAM module:  simply specify the variables in the
"/etc/security/pam_env.conf" configuration file.

To set another pager, add or change:
----
PAGER     DEFAULT=more
----

If list in ts-shell is not very long, try the following:

To cause less automatically exit if the entire content can be displayed on
the first screen, i.e. it behaves like cat then, add:
----
LESS          DEFAULT="-F"
----


Best regards,
  Hendrik

--
Hendrik Brueckner
brueck...@linux.vnet.ibm.com      | IBM Deutschland Research & Development GmbH
Linux on System z Development     | Schoenaicher Str. 220, 71032 Boeblingen

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to