execute command in batch with telnet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a server which is start the telnet service. I can using telnet command
to connect to the server from my client and execute commands on the server.
Is it possible to execute all the commands in a batch.

I try to create a file and write all the command I want in the file. And
then I run it as "telnet MyServer < CommandFile.txt", but It's not work. Is
it possible to do this?
 
you may use ftp -s:CommandFile.txt to execute the file, inside the
CommandFile, you have to specific the ftp server name, user name, and the
action you wanna to do.

example:
open ftp.xxx.com
username@password
cd /directory
touch sometexthere > xxx.txt

BT
 
As I know, ftp is used for file transfer. How could I execute a command
remotely using ftp protocol? Could you please tell me more?
 
Back
Top