#!/bin/bash #Run script for router as part of #Assignment 3 #Computer Networks (CS 456) #Number of parameters: 4 #Parameter: # $1: router_id = unique int identifier for the router # $2: nse_host = host address of the network emulator # $3: nse_port = the same, but the port number # $4: router_port = the port for the router #For Python implementation if [ "$#" -ne 4 ]; then echo "Program takes 4 parameters, which are a router_id, emulator host addr, host port, and router port." exit 1 fi python3 router.py $1 $2 $3 $4