levy@ttrdc.UUCP (Daniel R. Levy) (03/22/89)
Thanks to everybody who sent me info on using /etc/rmt, the remote magtape daemon on suns. Briefly put, TFM is FU (i.e. the manual page on rmt is ludicrously WRONG). Spaces in the control input are never required (although space padding is tolerated in the case of numeric parameters), and newlines are used only to terminate parameters. Also the "mode" in the Open command is really just the open flags to be supplied as the second arg to the open() syscall; it is not a true "mode" a la creat() or the optional third argument to open(). So the documented command sequence O /dev/rmt0 2 should be O/dev/rmt0 2 and R 512 is okay, but just as well put R512 The data returned from the S command is machine-dependent and may not (probably won't be) valid on another species of machine than the remote. This command also does NOT take a newline terminator.... Oh, one other thing; /etc/rmt takes one optional (undocumented) argument naming a file to which it will write debug output. -- Daniel R. Levy UNIX(R) mail: att!ttbcad!levy AT&T Bell Laboratories 5555 West Touhy Avenue Any opinions expressed in the message above are Skokie, Illinois 60077 mine, and not necessarily AT&T's.