Script for accessing data..

Well i m kinda newbie at this shell scripting stuff .. so spare me if u find me total stupid
As a matter of fact i need a script to access a remote unix server via telnet , for time being assume any ip address , username and password , then on that server script should check the path ( assume correct path is "/home/var/tmp" and if default path is not this .. then go to this path ... then on this very path ... run few commands in given order .. let those be
1) su - ss7
2) cd Isup
3) show tsp

For time being i stop here .. assume it done till now .. caz i don think i ll able to digest whole in one step .. i ll proceed with remaining steps after getting through with these many tasks
i hope i ll be making sense or whateva hit me back if u think i ll ned to explain more
Regards

Have a look at this:

Try to search in the forums, there are probably more threads on this.
Regards.