bug & fix: Digital's *unsupported* UniCensus

From: Randy M. Hayman <haymanr_at_icefog.sois.alaska.edu>
Date: Wed, 06 Nov 96 16:40:21 -0900

Problem:
When the nsrjb command (line 1095 of uni_census) is executed and you have
more than one jukebox, it prompts stdin (uni_census script) for which jukebox
to show the contents of - meaning the script just hangs waiting for input.

One possible fix:
Create a file called, say /usr/local/bin/unicensus.nsrjb.input.file

$ cat /usr/local/bin/unicensus.nsrjb.input.file
show name
print type: NSR jukebox
$

Then change line 1095 of the uni_census script from:

    nsrjb -v 2>&1 | head -100 > $TEMPDIR/n$$

to the following:

    nsradmin -i /usr/local/bin/unicensus.nsrjb.input.file | tr -s [:space:] | tr
-d '";' | awk '{system("nsrjb -Cv -j "$2)}' 2>&1 | head -100 > $TEMPDIR/n$$


Now the script works, and outputs what is expected.


Randy M. Hayman
haymanr_at_icefog.alaska.edu
Received on Thu Nov 07 1996 - 02:56:39 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT