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
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 t
At least on my Busybox-based system, telnet cannot be used with input
from a pipe.
I don't think that is true.
the very simple "sh" shell can't do pipes. msh (from busybox) can.
-Michael
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http:/
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
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 "us
t.
Tom
- Original Message -
From: "Jamie Lokier"
To: "uClinux development list"
Sent: Tuesday, March 10, 2009 6:00 PM
Subject: Re: [uClinux-dev] ( subshell ) | telnet--> not workingon
WildFireucLinux
Bob Furber wrote:
>At least on my Busybox-based system, teln
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
___
Jamie Lokier wrote:
At least on my Busybox-based system, telnet cannot be used with input
from a pipe.
Is there a way around this?
Bob Furber
If you do that, it just exits with status 1 (error status).
-- Jamie
___
uClinux-dev mailing list
uCl
C 5fb9822b for node at 00675154
Data CRC eee6bd50 != calculated CRC 5fb9822b for node at 00675154
[repeats forever...]
- Original Message -
From: "Tom Stalcup"
To: "uClinux development list"
Sent: Tuesday, March 10, 2009 3:09 PM
Subject: Re: [uClinux-dev] ( subsh
evelopment list"
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 a
rber"
To: "uClinux development list"
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... ) | te
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
___
uClinux-d
"Bob Furber"
To: "uClinux development list"
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 i
velopment list"
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
#!/
14 matches
Mail list logo