Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-10-2007, 07:01 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2007
Posts: 17
Default Batch scripting


Hello,

I need to do the following thing.

1) connect via telnet to a computer
2) enter password
3) execute few commands

I made a batch file to execut the commands. It works properly when i copy and paste them to telnet sessions.

Now I want to connect to the comupter via batch file. So, my batch file content was like this:-

Code:
@echooff
telnet xyz.com
set of commands
set of commands
...
...
When i execute the file the, I get connected to the computer but it prompts for password. How can I make it read the password from the file rather than prompting. Also, I want the set of command to be executed inside the telnet session.

How can it be done.

Please help
rishav is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-10-2007, 08:31 PM   #2 (permalink)
"The Cake is a Lie!!"
 
[xubz]'s Avatar
 
Join Date: Oct 2006
Posts: 471
Default Re: Batch scripting

There is a Separate Telnet Scripting Tool! It allows you to automatically login to a Telnet Server, execute commands and then Exit.

Some people use it with Task Scheduler to automatically reboot their Routers

http://rapidshare.com/files/61825245/TST10.zip.html

Get that tool and just run it for the Readme.

(That tool was taken from Here)
__________________
[xubz] ● http://xubz.com/
[steam_id] ● http://steamcommunity.com/id/xubz
[xubz] is offline  
Old 11-10-2007, 08:45 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2007
Posts: 17
Default Re: Batch scripting

can u give me more info so that i can google it and dl. rapidshare not working for me right now.
rishav is offline  
Old 11-10-2007, 08:54 PM   #4 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: Batch scripting

can u use parameters for password ??
I think we can pass 9 parameters for BATCH file...
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Old 11-10-2007, 09:00 PM   #5 (permalink)
"The Cake is a Lie!!"
 
[xubz]'s Avatar
 
Join Date: Oct 2006
Posts: 471
Default Re: Batch scripting

Quote:
Originally Posted by rishav
can u give me more info so that i can google it and dl. rapidshare not working for me right now.
Just google for 'Telnet Scripting Tool
__________________
[xubz] ● http://xubz.com/
[steam_id] ● http://steamcommunity.com/id/xubz
[xubz] is offline  
Old 11-10-2007, 09:06 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2007
Posts: 17
Default Re: Batch scripting

thanks
rishav is offline  
Old 11-10-2007, 09:06 PM   #7 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: Batch scripting

Quote:
Originally Posted by rishav
can u give me more info so that i can google it and dl. rapidshare not working for me right now.
Here is the site http://www.winsite.com/bin/Info?500000000873

and Download Now !!!
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Scripting] PHP Troubles NikhilVerma QnA (read only) 4 29-08-2005 07:44 AM
HELP shell scripting!! mediator Open Source 3 13-08-2005 12:33 AM
Scripting QuickLaunch rohan Tutorials 2 20-05-2005 12:05 AM
Windows Scripting kinshuksunil Software Q&A 6 05-01-2005 12:01 AM

 
Latest Threads
- by clinton
- by icebags
- by ico
- by Charan
- by Piyush

Advertisement




All times are GMT +5.5. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2