Ah, yes! I got it. I found
this website which had an example that I based mine off of.
I always hate those web activity logs for some reason, even though I know nobody else can see them

The purpose of this script is remove the log from my modem and replace it with a link to /dev/null so it can't be regenerated.
I start this script:
Code:
#!/bin/bash
echo -n "Password: "
./telnet-commands | telnet
which executes this script:
Code:
#!/bin/bash
stty_orig=`stty -g`
stty -echo
read pass
stty $stty_orig
echo "open 192.168.100.1 23"
sleep 1
echo "admin"
sleep 1
echo ${pass}
sleep 1
echo "cd /var/tmp"
sleep 1
echo "rm log_web_activity"
sleep 1
echo "ln -s /dev/null log_web_activity"
sleep 1
echo "exit"
and pipes it into telnet.
I'm happy, no more doing it by hand