Re: Frage zu netcat
Hallo Mathias,
On Thu, Oct 12, 2006 at 09:14:10PM +0200, Mathias Peters wrote:
> An Christoph:
> Das grep ist leider nicht das Problem. ohne das grep bekomme ich die
> Kontrolle auch nicht zurück.
Dann musst du den Dienst auf Port 8585 womöglich explizit beenden? Also
dem echo noch ein 'quit' o.ä. mitgeben, vgl.:
$ time echo -e "user user\npass password\nhelp" | nc -w1 localhost 21 | grep size
SMNT* STRU MAIL* ALLO CWD STAT XRMD SIZE
real 0m2.027s
user 0m0.003s
sys 0m0.003
$ time echo -e "user user\npass password\nhelp\nquit" | nc -w1 localhost 21 | grep SIZE
SMNT* STRU MAIL* ALLO CWD STAT XRMD SIZE
real 0m0.027s
user 0m0.002s
sys 0m0.006
> Gruß,
> Matze
Gruß,
f
--
Gravity is a myth, the Earth sucks.
Reply to: