I want to execute the tftp command without entering into the "tftp command line".
I have tried the below commands:
tftp xx.xx.xx.xx -c put file1 file2
tftp xx.xx.xx.xx -m binary -c file1 file2
But I got:
usage:tftp host-name [port]
tftp>
After the "usage:" message its entering the tftp command line.
I have tried it with the verbose option turned on.
I just want to know if the command I given worked properly. The "usage:" message makes it seem like it's not the correct usage of the tftp command.
This command is to be invoked from a Bash file which will be invoked from a CLI application I am working on.
I have followed the advices on this link : https://superuser.com/questions/581812/put-file-with-tftp-client-in-linux