#!/usr/bin/csh  -f

# ------------------------------------------
# Created - By Ido Regev.
# Revised - By Arieh Stroul 
# Feb 2001 - revision 1.01
# ------------------------------------------

setenv port $1

if (("$port" == "tty0") || ("$port" == "com1")) then
   setenv num 0
else if (("$port" == "tty1") || ("$port" == "com2")) then
   setenv num 1
else if (("$port" == "tty2") || ("$port" == "com3")) then
   setenv num 2
else if (("$port" == "tty3") || ("$port" == "com4")) then
   setenv num 3
else
    echo "usage: delayed_inst_modem tty<x> or delayed_inst_modem com<y>"
    echo "           x: 0, 1, 2 ,3        y: 1, 2, 3, 4"
    echo " Example:  new_inst_modem tty0"
    echo " Example:  new_inst_modem com1" 
    exit 1
endif

echo ./new_inst_modem_aa tty$num | at now + 3 minutes


