home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WindowsWare 2 the Maxx
/
winmaxx.zip
/
winmaxx
/
WIN_NT
/
PSXRPC.ZIP
/
PSXCLT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-20
|
784b
|
43 lines
/*
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);
}