Telenet that support scripting

Discussion in 'Hardware' started by Shakar, Feb 18, 2004.

  1. Shakar

    Shakar Private E-2

    Hello,

    I re-discovered BBS, and I'm playing a TradeWars2002 game, but it's kind of boring moving colonist to planet, does anyone know of a telnet application, that allowes you to do some scripting (like in the old phone dialer ex: Telemate).

    Thanx
    SH
     
  2. ChViRuS

    ChViRuS Private E-2

    OK. Firstly some defines:

    Telnet is a protocol that is used to send character data through a serial connection. In other words, when you use a telnet program, (e.g. putty, or the program "telnet" provided with most OS's) you are actually starting up a shell that runs a program in the background that sends and recieves data using this protocol.

    Basically, what this means for you, as a user is that you can send shell commands over telnet to a receiving host, and recieve the respective output that that command produces. It's like being logged into a DOS/Unix shell at that computer. Hence, any script that you want, must be stored and run as if you were sitting at that computer. The actual telnet program itself doesnt (typically) handle scripting.

    What kind of scripting do you want to do? shell scripts (e.g. a Bourne Again Script), Perl script? Im not familiar with the game you mentioned, or how scripts can interact with it, but if you provide that information, then maybe we help you write a script to achieve what it is you want to do.

    Regards
     
  3. GregoryDalton

    GregoryDalton Private E-2

    Hmmm Im just musing out loud here so bear with me...

    It wouldnt be impossible to write your own telnet application. I am sure there must be API's out there for say Java that would allow you to create your own very easily. Assuming this game doesnt use any specialised comms protocols or connection software I am sure you could create your own that would allow you to loop commands to be sent down the line. Perhaps not as easy as having a nice cobbled together perl/bash/korn script to do the work for you but as ChViRuS correctly states these would need to be stored on the server side.

    Im not even sure if that is possible, but it seems the only logical way to do this in my oppinion... Just thought I woudl try and offer a new slant on it.

    Cheers...
    Greg
     
  4. Shakar

    Shakar Private E-2

    I found ZOC a telnet client, that support REXX (it is based on REXX that is on OS/2, not the same thought, it has less functionalities ) for scriptting. But it's more than enought for my needs, here is an example of what it does:

    zoc.wait("? :")
    zoc.put("L^M")

    zoc.wait("Planet? :")
    zoc.put("65^M")

    These 4 lines will allow you to land on planet 65, it's pretty easy, wait for a prompt and send a string as a command

    SH
     
  5. da chicken

    da chicken MajorGeek

  6. Shakar

    Shakar Private E-2

    I'll give them a try,

    Thanks

    SH
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds