Thank you, I'll try that.
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"; sleep 2; printf "pwd" ) | ftp 10.0.0.24
This will connect to the FTP server, which will query for the username, then
afer a 2 second delay, apparently send a carriage return, delay again, and
get stuck waiting for a password. So sleep works, but the two printf's are
sent together as a single carriage return after the first delay.
( sleep 2; echo "username"; sleep 2; echo "pwd" ) | ftp 10.0.0.24
Same behavior as the printf method, except that a single carriage return is
sent BEFORE the initial 2 second delay. The sreen is shown waiting for a
password, like in the first example above.
-----------
# ( sleep 2; printf "username"; sleep 2; printf "pwd"; sleep 2 ) | ftp
10.0.0.24
Name (10.0.0.24): Password:
-----------
I couldn't get any function to work when piping a subshell into telnet.
Tom
----- Original Message -----
From: "Jamie Lokier" <ja...@shareable.org>
To: "uClinux development list" <uclinux-dev@uclinux.org>
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, 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
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev