ich hab mal wieder ein problem: ich hab vor in mein webinterface ein IRC-BNC controll einzubauen. Damit sollte ich kein problem haben, auch wie ich über telnet ins irc komm usw. schon alles gebongt.
Nun zu meiner frage:
ich will per php ein locales script erstellen des telnet ausführt. Dazu folgende steps:
telnet fragland.org 49999 << EOF
PASS w*r*i*
NICK dee`s^telnet
USER d3nation 8 * : josef w.
diese müssten ausgeführt werden. Nun schaugt mein script folgendermaßen aus:
Code: Select all
#!/bin/bash
telnet fragland.org 49999 << EOF
PASS w*r*i*
NICK dee`s^telnet
USER d3nation 8 * : josef w.
quit
EOF
Code: Select all
linux:~ # ./script
./script: line 1: s^telnet: command not found
./script: line 2: USER: command not found
./script: line 3: quit: command not found
./script: line 4: EOF: command not found
Trying 217.20.115.116...
Connected to fragland.org.
Escape character is '^]'.
Connection closed by foreign host.
danke!
dee