Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialup and Telnet

Status
Not open for further replies.

hankm3

Programmer
Jan 27, 2002
284
US
Hello,

Is it possible to perform a Dialup connection from a Script and then perform a Telnet once the Connection is Made ??

Thanks
 
Hank, here is some text copied from my site that shows how to launch a dial-up networking connection. I never investigated a good way to see if the connection was made (I would think you could use winexists to look for the dialog that is displayed during the dialing process):

If you would like your script to call or disconnect a dial-up networking connection, the program you will want to run is rasphone.exe, located in the system32 directory under your Windows NT, 2000, or XP installation. Run rasphone.exe -? from a cmd prompt to see the available parameters this program takes. On Windows 95 or 98, the proper command line is rundll rnaui.dll,RnaDial <ConnectionName>, where <ConnectionName> is replaced with the Dial-Up Networking connection exactly as it appears within Windows.

aspect@aspectscripting.com
 
Thanks Knob..

Maybe the way I stated the question was vauge. I dial in to to Unix Server and Login. At that Point I want to Telnet to a New Server (IE). This was a question from a Bellsouth Friend in Charlotte NC. I have no way to test this. But it seems, that once your Access the Dial In Connection, The telnet should work.. Is this Correct ???

Thanks
 
When you make the connection to the Unix machine, is it a "normal" data connection or does it somehow give your machine an Internet connection? Are you trying to use Procomm's telnet client (which will only work if an Internet connection is established) or a telnet client installed on the Unix machine?


aspect@aspectscripting.com
 
Hank,
If after logging into the Unix Server you're at a shell prompt the shell command 'telnet' should work to telnet from the server to anywhere in its network.

% telnet 192.168.10.10

Or something similar where the '%' is the prompt.
The actual prompt will depend on which variation of shell is being used '%' is csh (c-shell).

Hope this helps... DT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top