#include "tcp.h" int tcp_address_from_shell(Host1, UserId, ServerFile, Port, Host) char *Host1; char *UserId; char *ServerFile; int *Port; char **Host;
This is identical to
tcp_address_from_file(), except that, instead of
relying on a network transparent file system to be able read
ServerFile, it executes a remote shell command to Host1
to read the contents of the file. This is useful for applications
that cannot rely on the presence of a network transparent file system.
*Host is a pointer to static storage that will be overwritten
at the next call to
The UserId argument may be specified as
"", meaning login as
myself. It is provided so that the machine that has the handle file
need not have an account for every user that wishes to access it.
Note that Host1 need not be the same string as *Host, but typically is.
tcp_address_from_shell() returns zero upon successful completion.