TFTP get call for two files
Solution 1
If you specify 1 file that file is transferred with the original file name to the local server
If you specify 2 files the first file is transferred using the second file name as a destination on the local server (so in your case file2 on your destination server actually has file1's contents)
If you specify 3 or more files all files are transferred with the original file name to the local server
Solution 2
Have you tried:
tftp 173.32.52.12 <<!
get MyFile1.txt
get MyFile2.txt
!
Related videos on Youtube
![Gaff](https://i.stack.imgur.com/jg7xd.jpg?s=256&g=1)
Gaff
Updated on September 18, 2022Comments
-
Gaff almost 2 years
I am having a very strange problem with the following TFTP command to get two files from a host IP:
tftp 173.32.52.12 -c get MyFile1.txt MyFile2.txt
The command executes just fine but when I go to retrieve the files, only the second one shows up as the first one has been omitted. The strange thing is I have used this exact command to pull different numbers of files, and it works with 1 file, 3 files, 4 files, and 5 files (successfully returns all files from the host) BUT for some reason it doesn't work with 2.
tftp 173.32.52.12 -c get MyFile1.txt MyFile2.txt MyFile3.txt etc. etc.
Does anyone have a clue why it's leaving out the first file after the get whenever I use only two files?
-
linsek almost 12 yearsMore info is probably needed here as we don't know the details on your environment. what distro are you using? what tftp client are you using? There should be a verbose mode with your tftp client. Try running it in that to see if it provides more insight. Edit your post with updated info when you get it. Also console dumps of the runs are helpful.
-