tftp batch mode within bash script

Hi,

I put the necessary tftp commands into a batch file and I can run tftp by

$ tftp < tftpbatchscript

in bash command line and then successfully exit.

Now, I want to put a line which does the same thing above. However, when I put this line into a bash script, the lines below this line do not work.

Could you help me about this problem?

Thank you.

What Operating System and version are you running? There is no consistency on tftp implementations.
Is there a "END" or "QUIT" at the end of the tftp parameter file?
Did you create both files with a proper unix editor such as vi or vim ?

Ps.
tftp has been banned on most sites because it is insecure.

1 Like