Lazy Geek

What is Lazy Geek?
Lazy Geek is an Android application which allows automating interaction with remote hosts via telnet or ssh. Lazy Geek acts like the popular UNIX application expect and uses similar (but reductive indeed) script syntax.

How does it work?

Lazy Geek uses scripts stored in SD Card folder «/sdcard/Lazy Geek» — folder will be created automatically while first launch.
All scripts will be found automatically while next launch.

What for?

Lazy Geek allows to turn your mobile-phone into computer control panel and to make implementation of routine tasks more comfortable: turning on/off computers and particular services, «wise» office or house info structure management, etc.
Thus there is no need to have computer with telnet/ssh client nearby.


Lazy Geek uses simple scripts with syntax similar to expect. There are few examples below.

Telnet script:

SSH script:

# Comment goes here
## title = Open the entrance door

spawn telnet reception.elegion.local:23 # open telnet connection
send "open" # send command to remote host
expect "opened" # wait until get answer from remote host 
exit 0 # exit from script
# Comment goes here
## title = Reboot server
## user = root
## password = secretpassword

spawn ssh
send "reboot"
expect " going to reboot "
exit 0

Let’s look closer:
# — string that starts with this char is a comment and is ignored by interpreter.
## — script attributes. These strings are also ignored while execution but have application required meta-data.
In case of attribute «title» — using it we have script title in the moment when script is displayed on Android phone.

spawn telnet reception.elegion.local:23 — connect via telnet to reception.elegion.local port 23. Syntax: spawn {protocol} {address}:{port}
In case of ssh, authentication data is taken from attributes «username» and «password».

send «open» — send command.
expect «opened» — wait for server answer containing the string.
exit 0 — close connection with server.

© 2009 e-Legion Ltd.