Retrieving files from tftpd

I'm trying to follow a Clonezilla script for retrieving files from a tftp server, but this does not seem to work on FreeBSD...

The example is tftp -g -r custom-ocs-2 -l /tmp/custom-ocs-2 192.168.120.254 but on FreeBSD I just get:-
Code:
usage: tftp [host [port]]
tftp>

Is this to be expected?
 
Yes I did notice the man page, but thought there might be some undocumented options... I kind of thought that such universal programs as tftpd, which have been around for ever, would have similar options..

I have actually found that something like this works:-

echo 'get ldlinux.c32' | tftp 192.168.1.1
 
I kind of thought that such universal programs as tftpd, which have been around for ever, would have similar options

Is there an authority responsible to ensure that command line tools behave exactly the same across different operating systems?
 
I kind of thought that such universal programs as tftpd, which have been around for ever, would have similar options..
Different implementations of the programs will have different options. Just because the protocol is the same and the tools are named the same that doesn't mean they all have the same options or usage.
 
That's a different question.
I was splitting hairs.
POSIX defines the applications API if you will, but not how you implement it for your own OS. So while tftp might use the POSIX library calls across different POSIX systems, it is totally up to the designers/implementers whether they follow the RFC and restrict or extend its capability.
See: RFC1350 and its extension RFC2347

So, ultimately, no, there is no standard. Some, for example, extended the functionality of grep into egrep. Still, I would guess the GNU version of grep is not exactly the same as the OpenBSD (now FreeBSD) version of grep?

Generally people get around this with tests in shell scripts to detect the OS and implement accordingly. It makes portability a pain, but that's life, I guess.
 
Back
Top