home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 July
/
PCWorld_2000-07_cd.bin
/
Software
/
Vyzkuste
/
MicroTel
/
INFO
/
INFO.SH
Wrap
Linux/UNIX/POSIX Shell Script
|
1999-02-18
|
1KB
|
55 lines
#!/bin/sh
###############################################################################
# info.sh #
# Script demonstruje cteni promennych z prostredi op. systemu a MicroTelu. #
###############################################################################
if [ "$OSTYPE" = "Linux" ]; then
INTPR="-e"
SAT="@"
else
INTPR=""
SAT=""
fi
echo $INTPR "\033]$SAT?MTVER@"
read MTVER
echo $INTPR "\033]$SAT?MTDIR@"
read MTDIR
echo $INTPR "\033]$SAT?MTINI@"
read MTINI
echo $INTPR "\033]$SAT?WINDIR@"
read WINDIR
echo $INTPR "\033]$SAT?WINTEMPDIR@"
read WINTEMPDIR
echo $INTPR "\033]$SAT\044COMSPEC@"
read COMSPEC
echo $INTPR "\033]$SAT\044PATH@"
read DPATH
echo $INTPR "\033]$SAT\044TMP@"
read DTMP
echo $INTPR "\033]$SAT\044TEMP@"
read DTEMP
clear
echo $INTPR "\n\n\nInformace o emulatoru"
echo "---------------------"
echo "Verze emulatoru: MicroTel v $MTVER"
echo "Domovsky adresar emulatoru: $MTDIR"
echo "Konfiguracni soubor emulatoru: $MTINI"
echo "Adresar Windows: $WINDIR"
echo "Docasny adresar Windows: $WINTEMPDIR"
echo $INTPR "\n\nInformace o prostredi"
echo "---------------------"
echo "PATH: $DPATH"
echo "COMSPEC: $COMSPEC"
echo "TMP: $DTMP"
echo "TEMP: $DTEMP"
echo $INTPR "\n\n"