Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Windows

Reply
 
LinkBack Thread Tools Display Modes
Old 08-09-2006, 10:17 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
telnet via a batch file?

i need a script that telnets to another system that requires user/pass. then i need to execute a few commands and telnet again into another system from there.

the more i search, the more i'm thinking this is not possible with the default telnet tools on windows xp. any suggestions?
__________________
Mike
sde is offline   Reply With Quote
Old 08-09-2006, 11:00 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,721
redhead is on a distinguished road
ssh
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 08-09-2006, 12:12 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
both remote systems do not run ssh. they are very minimal linux installs in a local network. i'm trying to deploy code to 'box 2' from windows.

box 1 has an ftp server
box 2 has only an ftp client
box 2 can only be accessed from box 1

i ftp my code to box 1.
i telnet to box 1 and.
from there i telnet to box 2
there, i use the ftp client to get the code from box 1.

box 2 is not accesable directly.

i need to automate this process because it completely sucks. i've been working with expect running under cygwin, but there are issues with it spawning processes.
__________________
Mike
sde is offline   Reply With Quote
Old 08-09-2006, 12:25 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Check out the expect command.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 08-09-2006, 12:32 PM   #5 (permalink)
AssKoala
Anti-Zealot
 
AssKoala's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 72
AssKoala is on a distinguished road
Send a message via AIM to AssKoala Send a message via MSN to AssKoala Send a message via Yahoo to AssKoala
You can always try using plink or some other telnet client. If expect isn't working, then you'll need a native Win32 app.
__________________
If you always think like an expert, you'll always be a beginner. | "A handful of knowledgeable people is more effective than an army of fools" -Writing Secure Code, 2nd Ed.
AssKoala is offline   Reply With Quote
Old 08-09-2006, 12:52 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road

Quote:
Originally Posted by sde
i've been working with expect running under cygwin, but there are issues with it spawning processes.
i found a standalone windows binary for expect and it worked.

http://bmrc.berkeley.edu/people/chaffee/expectnt.html
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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
Log4j created file not able to delete while testing my application?? j.gohel Java 12 04-07-2006 10:52 AM
Simple(?) Batch file ConcreteClam All Other Coding Languages 1 08-24-2004 04:59 AM


All times are GMT -8. The time now is 02:19 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting