Apparently [EMAIL PROTECTED] wrote:
> The tftp client from the netkit package can be use with a file as command
> input.
> file.txt:
> get x.x
> EOF
> Then just do a:
> tftp 10.1.1.2 < file.txt
> Boas Betzler, IBM Linux Technology Center
> embedded Linux
Why do use a here doc:
tftp 10.1.1.2 <<-EOF
get x.x
EOF
... or even a pipeline:
echo -e 'get x.x\n' | tftp 10.1.1.2
(you'd embed more \n sequences if you needed to execute more
than one command).
--
Jim Dennis
Software Analyst
Axis Personal Trainers http://www.axispt.com
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.