SUMMARY: clear, tput and ucblib
hector at tell.ascom.ch
Tue Oct 16 07:54:17 EDT 2001
That was quick. Thanks to Dave Mitchell, John Benjamins and John Julian,
and anyone else who replies in the next few seconds...
One solution was to define a function, clear, in each script, e.g.
in Bourne shell:
env LD_LIBRARY_PATH=/usr/lib /usr/bin/clear
Another was to replace the "clear" command with "/usr/ucb/reset -Q" -
a reset seems to cost time, however, and my user was not able to
change all the scripts affected.
In the end I opted for the first solution - fortunately, it was possible
to edit the configuration file which set the LD_LIBRARY_PATH and to define
an alias (it was a csh script).
} A user has a set of scripts which require /usr/ucblib in the
} LD_LIBRARY_PATH in preference to /usr/lib.
} Many of these scripts contain 'clear' commands. With /usr/ucblib
} this just crashes ("Killed").
} This is a new problem in Solaris 7 and 8.
} Is there a workaround? The user doesn't want to unset and reset the
} LD_LIBRARY_PATH in all his scripts around each 'clear' command, as they
} are too many. The end users of his application have different platforms
} and different terminal types, so echoing the terminal clear sequence does
} not work.
More information about the sunmanagers