From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076341621410.tru64-unix-managers.marc@archive.invalid> From: "Randy M. Hayman" Date: Thu, 07 Nov 1996 01:40:21 +0000 To: tru64-unix-managers Subject: bug & fix: Digital's *unsupported* UniCensus X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076341621410 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@icefog.alaska.edu