This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

[SOLVED] Telnet login command-Deliver nickname and password

General support and discussion of Eggdrop bots.
Post Reply
t
tessa1
Halfop
Posts: 49
Joined: Mon Apr 18, 2005 12:51 pm
Location: Germany

[SOLVED] Telnet login command-Deliver nickname and password

Post by tessa1 »

Hi,

I'm connecting via putty (ssh and keyfile) to the server.

then i type the follwing command

Code: Select all

telnet 127.0.0.1 1234
--> Bot needs nickname and password

Is it possible to deliver the nickname and password in this command?

EDIT and Solved: I'm using expect on my shell.

eggdropautologin.sh

Code: Select all

#!/usr/bin/expect -f
spawn telnet 127.0.0.1 1234
expect -re "Nickname"
send "tessa1\n"
expect -re "Passwort"
send "XXXXXXXXXXXXXXX\n"
interact
Post Reply