Article Figure 1 Listing 1 Listing 2 Listing 3 feb2007.tar

Listing 3 create_distributions

#!/bin/ksh
# Listing 3
# create_distributions

# set your own environment
. /etc/setenv_path

rm /var/spool/pkg/release/.???/*/*
rmdir /var/spool/pkg/release/.???/*

case $(uname -n) in
bambi)
    create_distribution -t ssh -h pongo TS1
    create_distribution TS2
    ;;
goofy)
    create_distribution TS1
    create_distribution TS2
    ;;
nemo)
    create_distribution TS1
    create_distribution TS2
    ;;
pluto)
    create_distribution -t nfs -h nemo TS1
    create_distribution -t nfs -h nemo TS2
    create_distribution -t rsh -h goofy TS1
    create_distribution -t rsh -h goofy TS2
    ;;
pongo)
    create_distribution -t ssh -h pluto TS1
    create_distribution -t rsh -h bambi TS2
    ;;
esac
# End create_distributions