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