home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.jcu.edu.au
/
2014.06.ftp.jcu.edu.au.tar
/
ftp.jcu.edu.au
/
JCUMetSat
/
ee.0
< prev
next >
Wrap
Text File
|
1995-05-31
|
2KB
|
82 lines
#!/bin/sh
#
# Shell scrip re-written after previous one was deleted.
# This script enables users, via a menu driven table
# to perform all the required tasks for Satellite Image
# Transfers.
#
# 14th August 1991.
#
PATH=$HOME/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin:/usr/local:/usr/new:/usr/hosts:/usr/local/bin/X11:/usr/bin/X11:.
clear
while true
do
echo " "
echo " JAMES COOK UNIVERSITY"
echo "METEOROLOGICAL SATELLITE IMAGE TRANSFER"
echo " SYSTEM"
echo " "
echo " "
echo "[1] Startup kermit for file transfer."
echo "[2] Startup zmodem for file transfer."
echo "[3] Short directory listing,"
echo " <RETURN> next line, <SPACE> next page, q to stop/end."
echo "[4] Long directory listing,"
echo " <RETURN> next line, <SPACE> next page, q to stop/end."
echo "[5] Change your current working directory."
echo "[9] Exit and logout."
echo " "
echo -n "RESPONSE: "
read RESPONSE
case $RESPONSE in
1) echo "Starting up kermit. Please wait..."
kermit -ix
;;
2) echo "Starting up zmodem."
echo "** Be WARNED about case sensitivity. **"
echo -n "Enter filename to send : "
read FILENAME
if [ -f $FILENAME ]
then
echo "Issuing command \"sz $FILENAME\". Please wait..."
sz $FILENAME
else
echo "<$FILENAME> file does not exist."
echo "PLEASE CHECK."
sleep 5
fi
;;
3) echo "Short directory listing. Please wait..."
ls -CF | less
;;
4) echo "Long directory listing. Please wait..."
ls -l | less
;;
5) echo "Changing Directory."
echo -n "Please enter directory ? "
read DIRECTORY
if [ -d $DIRECTORY ]
then
cd $DIRECTORY
echo "Current Working Directory <$DIRECTORY>."
sleep 3
else
echo "<$DIRECTORY> directory does not exist."
echo "PLEASE CHECK."
sleep 5
fi
;;
9) clear
echo "Finishing session. Thank-you and Good-bye."
sleep 3
exit
;;
esac
done