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"; 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.
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). -- Jamie _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
