Are you talking about using
tftp as a server or a client? The
tftp server is normally run as a child of
inetd, so isn't actually 'started',
per se.
The tftp client,
tftp, reads its input from stdin, and so scripts can be crafted and fed to it by redirecting
tftp's stdin to the script file.
Code:
#! /bin/bash
# Create a simple script
echo "get pxelinux.0" > tftp_client.scr
# ... more tftp commands here ...
echo "quit" >> tftp_client.scr
# Invoke the tftp client, with script as input
tftp 192.168.0.123 < tftp_client.scr
--- rod.