<div class='quotetop'>QUOTE (Nails @ Jul 21 2009, 08:12 PM) <{post_snapback}> (index.php?act=findpost&pid=23236)</div>
--- Quote Start ---
#!/bin/sh
{
echo "open uClinux"
echo "user root uClinux"
echo "put ./test /bin/test"
echo "bye"
} | ftp -vin[/b]
--- Quote End ---
With this, "sh" needs to be hush (or msh), as sash, which had been the default shell "/bin/sh" for quite a time, does not support piping ("|").
The very new version of uClinux dist (provided on the blackfin server) does use hush as default shell, though.
But you can actiate hush (e.g. in busybox) additionally to sash, and start the script with# !/bin/sash.
-Michael