Results 1 to 9 of 9

Thread: Need batch file help

  1. #1
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    At the student dorm where i am presently at
    to get connected to the internet, i have to
    1.type in run "telnet *****ip adress****"
    command prompt comes up
    2.type in username "***username***"
    enter
    3.type in password "***password*"
    enter

    is there any way for a simple batchfile script to do this because i have to do this several times a day and it is rather annoying.
    Thanks in advance

  2. Internet, Programming and Graphics   -   #2
    Vargas's Avatar gone fishin'
    Join Date
    Jul 2003
    Location
    the poopdeck
    Posts
    1,878
    would the -l varibule work?

    type: telnet /? for command line options

    -l Specifies the user name to log in with on the remote system.
    Requires that the remote system support the TELNET ENVIRON option.

  3. Internet, Programming and Graphics   -   #3
    I'm not aware of a way to automatically enter a password with a batch file.
    There is a windows port of expect which can be used for automating telent sessions.

    If you hunt around you can probably find a telnet client that can save usernames and passwords.
    Last edited by zaphodiv; 03-27-2006 at 10:08 PM.
    "I went over to a friend's house the other day. He was having problems with his computer and he asked me to look at it, and I realized he had Windows Me and it's like, oh no—that's your first problem."-Michael Dell, founder and CEO of Dell.

  4. Internet, Programming and Graphics   -   #4
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    Thanks for help
    i will look into auto password programs

    but if i make a batch saying
    Code:
    telnet 129.234.221.9
    the command window pops up exactly as expected
    could i simply put in after (telnet)
    Code:
    u5ern4me
    and then
    Code:
    pA55w0rd
    Vargas i don't understand your -l variable - where to place it?
    nice to see you back btw.

  5. Internet, Programming and Graphics   -   #5
    could i simply put in after (telnet) u5ern4me
    I don't think so. Firstly the interpreter will not process the next line until the telnet program closes, secondly the interpreter will take that as an instruction to run a program called u5ern4me
    "I went over to a friend's house the other day. He was having problems with his computer and he asked me to look at it, and I realized he had Windows Me and it's like, oh no—that's your first problem."-Michael Dell, founder and CEO of Dell.

  6. Internet, Programming and Graphics   -   #6
    Vargas's Avatar gone fishin'
    Join Date
    Jul 2003
    Location
    the poopdeck
    Posts
    1,878
    telnet -l username 129.234.221.9

    it doesn't say anything about password though. . . maybe:
    telnet -l username password 129.234.221.9

  7. Internet, Programming and Graphics   -   #7
    maybe:
    telnet -l username password 129.234.221.9
    That does not work.

    C:\Documents and Settings\Owner>telnet -l zaphodiv password a.machine.of.mine
    Connecting To password...Could not open connection to the host, on port a.machine.of.mine: Connect failed
    "I went over to a friend's house the other day. He was having problems with his computer and he asked me to look at it, and I realized he had Windows Me and it's like, oh no—that's your first problem."-Michael Dell, founder and CEO of Dell.

  8. Internet, Programming and Graphics   -   #8
    Vargas's Avatar gone fishin'
    Join Date
    Jul 2003
    Location
    the poopdeck
    Posts
    1,878
    maybe:
    telnet -l zaphodiv|password a.machine.of.yours

    but i think the solution would be a telnet client that supports scripting

  9. Internet, Programming and Graphics   -   #9
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    aaah i see the problem
    thanks for the info
    i found two programs which are supposedly able to do this
    SecureCRT or PenguiNet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •