SUMMARY: clear, tput and ucblib

From: Hector Davie <hector_at_tell.ascom.ch>
Date: Tue Oct 16 2001 - 07:54:17 EDT
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:
clear() {
    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).

Hector Davie

Original query:
} 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.
Received on Tue Oct 16 12:54:17 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:33 EDT