execute command in batch with telnet

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?
 
G

Guest

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
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sending Telnet Command via TCP/IP Socket 1
Star Wars via Telnet. 1
telnet to localhost 1
Telnet 2
Telnet Server Problem 1
How to Telnet? 4
How to block my users to issue a telnet command? 2
Where did Telnet go? 3

Top