Computing.Net > Forums > Disk Operating System > Telnet through batch program. Urgent!!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Telnet through batch program. Urgent!!!

Reply to Message Icon

Name: Sridhar Rao
Date: May 17, 2002 at 04:09:35 Pacific
Comment:

Hi all,
I want to automatically open a telnet session through a batch script. The user name and password should also be automatically supplied by the batch script. After opening the telnet session it should execute a set of commands on the telnet server and the output should be logged into a file on the client(from where the telnet session is invoked).
I have tried using a batch script but it opens a telnet window. This is not my objective. I hope there should be some way by which we can suppres the telnet command/run it in the background.
This is very urgent for me and my expertise in batch programming is novice.
Regards,
Sridhar.



Sponsored Link
Ads by Google

Response Number 1
Name: Miskva
Date: May 17, 2002 at 04:47:50 Pacific
Reply:

Maybe it doesnt work for what you are trying, but I would suggest

- create a file with the answers he asks when starting the program
- use reverse redirection

ex.

create the file input.log:
========================================
user
pass
bin
mget file.ext
quit
=========================================
in the batch script:

telnet server < input.log


0

Response Number 2
Name: Henry
Date: July 3, 2002 at 01:30:24 Pacific
Reply:

I tried the code suggested...it still doesn't work..so how?


0

Response Number 3
Name: daniel
Date: July 8, 2002 at 19:39:56 Pacific
Reply:

I have also gotten the same urgent problem for my application. Is there somebody can help?
Thanks
Daniel


0

Response Number 4
Name: Praveen
Date: July 9, 2002 at 12:52:25 Pacific
Reply:

I tried too. It didn't help.
Any suggestions are greatly appreciated.

Thank You


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Telnet through batch program. Urgent!!!

Telnet thru DOS batch program www.computing.net/answers/dos/telnet-thru-dos-batch-program/5671.html

backup batch program www.computing.net/answers/dos/backup-batch-program/2354.html

batch program to test disk space www.computing.net/answers/dos/batch-program-to-test-disk-space/14327.html