UNIX—Software Availability


The MFCF Undergraduate Environment is a group of several UNIX machines connected to a multitude of terminals throughout the Math & Computer building. In general, not all software is available on every machine in the group. You must be sure to do things only on machines which actually have available the software you are trying to use.

The solution to this is to use the hostselect command. Typed by itself, like this:

hostselect

it prints the name of an available machine, without checking for the availability of any specific software package. This is usually fine for messing with shell scripts or doing file and directory maintenance.

The hostselect command also lets you find a machine with a particular software package. To do this, type the name of the software package after the main command. For example:

hostselect javajdk

prints the name of a computer with the Java JDK installed. To see a list of all the software package names, type this:

hostselect +listall

To see a list of all machines suporting a particular package, combine the two options. For example:

hostselect javajdk +listall

prints a list of all machines available for use with the Java JDK. For more information about this command, look it up in the UNIX man pages (man hostselect).