********************** jupiter.sh **************

(open server
sleep 1
cd /usr ) | telnet
*************************************************


The script ,jupiter.sh tries to connect to server and change the directory to /usr.

I would like to
make sure whether telnet is successful .That is i want to remove command sleep.I will execute 'cd' only if telnet successful ..

Any way out ?