3.2 Setting up to Run Client Programs 47
#
# Start NetAudio server
#
if [ -f /usr/local/bin/naserver ]; then
/usr/local/bin/naserver & echo " NetAudio"
fi
On a machine running Solaris or other System V versions of UNIX, you can create
a le called, for example,
S98datlink
, in the directory
/etc/rc2.d
. Here is an
example assuming that
naserver
was installed in
/usr/lo cal/bin:
#!/bin/sh
if [ ! -x /usr/local/bin/naserver ] ; then
exit
fi
case "$1" in
'start')
echo "Starting naserver"
/usr/local/bin/naserver
;;
'stop')
echo "Stopping naserver"
pid=3D`/usr/bin/ps -e |
/usr/bin/grep naserver |
/usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
kill $pid
;;
*)
echo "Usage: S98datlink { start | stop }"
;;
esac
Other workstations and op erating systems may require slightly dierent commands.
3.2 Setting up to Run Client Programs
Once the NetAudio server is running, clients can be immediately run on the same
host. However, when running client programs on other hosts, the user must rst
tell the client where to nd the server. One way to do this is to set the environment
variable,
AUDIO DEVICE
, to the string
host:unit
where
host
is the name of the host
on which the NetAudio server is running, and
unit
is the
DAT-Link
unit number of