home *** CD-ROM | disk | FTP | other *** search
- /*
-
- POSIX Client Program
-
- (C) Copyright 1992 by
-
- John Richardson
- CompuServe 70541,672
- Internet jr@sni-usa.com
-
- This program may be used freely provided that this copyright is
- included in the source listings.
-
-
-
- This demonstrates using the RPC facility to have the WIN32 server execute
- requests on our behalf.
- */
- #include <unistd.h>
- #include <stdio.h>
- #include "win32psx.h"
-
- extern int errno;
-
-
- main(int ac, char **av)
- {
- /* Attach to the POSIX server that is our gateway to WIN32 */
- AttachToServer();
-
- /* Send the Noop RPC to the WIN32 Server */
- NoopRPC();
-
- /* Send a remote command execute request to WIN32 */
- if(ac == 1)
- SystemRPC("cl386");
- else
- SystemRPC(av[1]);
-
- return(0);
- }
-
-