On Wed, Mar 11, 2009 at 09:38:04AM +0100, Michael Schnell wrote:
In general, it's a hack to drive real interactive programs like `ftp'
and `telnet' from pipes.
Why do you think so ?
You don't get really reliable results without a `chat' type driver.
That needs a bi-directional pipe and that's
On Wed, Mar 11, 2009 at 12:27:39AM +0100, Jamie Lokier wrote:
If you're using a no-MMU architecture, you may get better results with
sh -c 'sleep 2; echo username; sleep 2; echo pwd' | ftp 10.0.0.24
(for example).
Yes, that's right. buysbox/msh has some problems when it comes to
In general, it's a hack to drive real interactive programs like `ftp'
and `telnet' from pipes.
Why do you think so ?
The question is what is feeding the pipe ?
You should be able to do a simple program that sends the characters to
the pipe using the appropriate timing and pipe same to
Sent: Tuesday, March 10, 2009 11:49 AM
Subject: Re: [uClinux-dev] ( subshell ) | telnet -- not workingon
WildFireucLinux
Hi Tom,
Thanks for the help. I tried enabling msh (I think it was already
enabled...when it boots up it says BusyBox...(msh)). And I put the
#!/bin/msh as the header
Bob Furber wrote:
( sleep 1; echo username; sleep 1; etc... ) | telnet 10.0.0.24 23
At least on my Busybox-based system, telnet cannot be used with input
from a pipe.
If you do that, it just exits with status 1 (error status).
-- Jamie
___
...@steroidmicros.com
To: uClinux development list uclinux-dev@uclinux.org
Sent: Tuesday, March 10, 2009 1:40 PM
Subject: Re: [uClinux-dev] ( subshell ) | telnet --not workingon
WildFireucLinux
Hi Tom,
I used the subshell like this (I think the parens are necessary):
( sleep 1; echo username; sleep 1
Sent: Tuesday, March 10, 2009 1:40 PM
Subject: Re: [uClinux-dev] ( subshell ) | telnet --not workingon
WildFireucLinux
Hi Tom,
I used the subshell like this (I think the parens are necessary):
( sleep 1; echo username; sleep 1; etc... ) | telnet 10.0.0.24 23
I am not familiar with scripts
Furber b...@steroidmicros.com
To: uClinux development list uclinux-dev@uclinux.org
Sent: Tuesday, March 10, 2009 1:40 PM
Subject: Re: [uClinux-dev] ( subshell ) | telnet --not workingon
WildFireucLinux
Hi Tom,
I used the subshell like this (I think the parens are necessary):
( sleep 1; echo
Bob Furber wrote:
At least on my Busybox-based system, telnet cannot be used with input
from a pipe.
Is there a way around this?
Try building netcat instead (the command is usually nc).
It's more appropriate for this job, and should build easily.
-- Jamie
Tom Stalcup wrote:
In the meantime, I collected some more information while trying this with
ftp. Maybe this will help isolate the problem.
Some functions work when piping a subshell into an FTP session, but the
printf and echo fuctions do not work properly.
( sleep 2; printf username;
10 matches
Mail list logo