so creating a script then doing /pathto/sh nameofscript doesnt work? the contents of the script being #!/pathto/sh telnet host 2000 <<EOF login blah blah blah EOF _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger