tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Randy M. Hayman" <haymanr () icefog ! sois ! alaska ! edu>
To: tru64-unix-managers
Subject: bug & fix: Digital's *unsupported* UniCensus
Date: Thu, 07 Nov 1996 01:40:21 +0000	[thread overview]
Message-ID: <96076341621410.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1996-11-07  1:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox