![]() |
![]() |
![]() |
![]() |
Razor is designed to run on a wide variety of platforms. To accommodate the variations in different UNIX dialects as well as WindowsNT, most of the supplied scripts will source in the system_setup script from the $RAZOR_HOME/scripts directory. It does a quick determination of which kind of system it is running on, and then sets up a number of shell variables which are later used instead of straight UNIX-style commands.
For example, some variations of the echo command support the outputting of lines without a carriage return. On other systems however, its necessary to use the printf command. The system_setup script defines a shell variable called _ECHO_N_ which breaks out to "echo -n" on some systems, and "/usr/bin/printf" on others. Through this, a shell script can be written that will run equally well on all systems.
. $RAZOR_HOME/scripts/system_setup $_ECHO_N_ "Que pasa? "
The system_setup script is automatically sourced in if you've referenced the rz_toolbox. You are, of course, free to review it and use it on its own if you work in a heterogeneous network and face the same challenge.
![]() |
![]() |
![]() |
![]() |
(Part 5 of 13 for this section) (Generated 09/13/99 at 18:14:47) |
Copyright Tower Concepts http://www.tower.com Voice: 315-363-8000 Fax: 315-363-7488 support@tower.com sales@tower.com |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |