#include #include #include #include #include #include using namespace std; int main (int argc, char *argv[]) { glocal int ret = -1; glocal const char *unixport = "/var/run/cfshellserver.sock"; glocal.ret = (argc,argv); setarg ('p',"unixport","Socket unix",glocal.unixport,false); int ret = -1; signal (SIGPIPE,SIG_IGN); signal (SIGCHLD,SIG_IGN); glocal string cmd; glocal.cmd = argv[0]; for (int i=1; i("unix:",glocal.unixport,1); sendf ("%s\n",glocal.cmd.c_str()); printf ("%s\n",line); ret = 0; return ret; return glocal.ret; }