Forum: Mikrocontroller und Digitale Elektronik Konsole Telnetprogramm um Text zu senden


von Communicator (Gast)


Lesenswert?

Hallo,

ich suche ein Telnetprogramm, mit dem ich eine Textdatei (also den
Inhalt, ähnlich der 'Textdatei senden' Funktion in HyperTerminal)
senden kann.
Sollte auf Windows 2000/XP lauffähig sein, und für die Konsole sein,
damit ich es mit einer Batchdatei automatisieren kann.

Kann mir da jemand helfen ?

von Patrick (Gast)


Lesenswert?

sicher das du telnet suchst und nicht ftp?

von TravelRec. (Gast)


Lesenswert?

Wäre HTerm was für Dich? Guck mal in´s PC-Forum, "Neues
Terminalprogramm..." Autor: Tobi

von Karl heinz B. (kbucheg)


Lesenswert?

Kannst du nicht mit dem normalen telnet-Client +
Input Rediretion arbeiten?

von Communicator (Gast)


Lesenswert?

@ patrick
yap, telnet. Ist zum ein script für OpenOCD. Weil die interne
Scriptfunktion nicht tut.

@TravelRec
Hab ich schon davon gehört. Geht aber nur mit GUI, oder ?

@ Karl Heinz Buchegger
> Input Rediretion
Hmmm. Was ist das ? Ich habe (natürlich) telnet auf meinem PC. aber
einen automatisierten text kann ich damit meines wissens nicht senden.
Oder irre ich da ?

von Karl heinz B. (kbucheg)


Lesenswert?

Na ja, input redirection:

Der Inhalt einer Datei wird anstelle des normalen
User Inputs in das Programm eingeschleift.

telnet < input.txt

das Programm telnet wird gestartet und erhält seinen Input
anstatt von der Konsole von der Datei input.txt

Das Gegenteil wäre Output redirection.
Auf der Konsole:

dir > mydir.txt

die Ausgabe vom 'dir' wird in die Datei 'mydir.txt' umgeleitet.

von Patrick (Gast)


Lesenswert?

Communicator,

auch wenn ich wieder neben deinen Vorgaben liege, aber bei Script und
file-transfer muss ich immer an Kermit denken

von Kritiker (Gast)


Lesenswert?

Das müsste mit cUrl zu erledigen sein.
http://curl.haxx.se/

von Kritiker (Gast)


Lesenswert?

Nachtrag:

TELNET

  The curl telnet support is basic and very easy to use. Curl
  passes all data passed to it on stdin to the remote server.
  Connect to a remote telnet server using a command line
  similar to:

        curl telnet://remote.server.com

  And enter the data to pass to the server on stdin. The result
  will be sent to stdout or to the file you specify with -o.

  You might want the -N/--no-buffer option to switch off the
  buffered output for slow connections or similar.

  Pass options to the telnet protocol negotiation, by
  using the -t option. To tell the server we use a vt100
  terminal, try something like:

        curl -tTTYPE=vt100 telnet://remote.server.com

  Other interesting options for it -t include:

   - XDISPLOC=<X display> Sets the X display location.

   - NEW_ENV=<var,val> Sets an environment variable.

  NOTE: the telnet protocol does not specify any way to
  login with a specified user and password so curl can't
  do that automatically. To do that, you need to track
  when the login prompt is received and send the username and
  password accordingly.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.