mynicolas / web-shell

Automatically exported from code.google.com/p/web-shell
2 stars 0 forks source link

Daemon mode eats characters during session start #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start in daemon mode
2. login
3. Login: is not readable

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mre...@gmail.com on 29 Jul 2007 at 10:47

GoogleCodeExporter commented 9 years ago
This also happens if you call webshell.py from an external script:

At the moment I have webshell running from a shell script
called from root's crontab:

* * * * * /root/WebShell-0.9.6/run.sh

The script run.sh has:

#!/bin/bash

ps -furoot | grep -q webshell.py$
if [ $? = 1 ]
then
    ./webshell.py
fi

This works, but when I connect I just get a blank screen.
When I type my login, the text I have typed appears in the very top left corner 
of
the screen.

When I press enter I get the normal password prompt:

user@localhost's password: 

and I can continue as normal.

The initial "Login:" prompt was swallowed somehow.

Original comment by john.har...@gmail.com on 22 Oct 2009 at 9:23