[BACK]Return to oxmain.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kxx

Diff for /OpenXM/src/kxx/oxmain.c between version 1.1.1.1 and 1.3

version 1.1.1.1, 1999/10/08 02:12:13 version 1.3, 1999/11/04 02:12:31
Line 1 
Line 1 
   /*  $OpenXM: OpenXM/src/kxx/oxmain.c,v 1.2 1999/10/30 02:24:27 takayama Exp $  */
 /* nullserver01 */  /* nullserver01 */
 #include <stdio.h>  #include <stdio.h>
 #include <sys/types.h>  #include <sys/types.h>
Line 11 
Line 12 
 #include "ox_kan.h"  #include "ox_kan.h"
 #include "serversm.h"  #include "serversm.h"
   
 #define SERVERNAME "/home/nobuki/kxx/ox_sm1"  #define SERVERNAME "/usr/local/OpenXM/bin/ox_sm1"
 /*  
 #define SERVERNAME "/home/nobuki/kxx/stdserver00"  
 #define SERVERNAME "/home/ftp/pub/OHP/ox_asir"  
 */  
   
 int OxCritical = 0;  int OxCritical = 0;
 int OxInterruptFlag = 0;  int OxInterruptFlag = 0;
Line 48  main(int argc, char *argv[]) {
Line 45  main(int argc, char *argv[]) {
   strcpy(sname,"localhost");    strcpy(sname,"localhost");
   strcpy(ServerName,SERVERNAME);    strcpy(ServerName,SERVERNAME);
   i = 1;    i = 1;
     if (argc == 1) {
       oxmainUsage();
       exit();
     }
   while (i<argc) {    while (i<argc) {
     if (strcmp(argv[i],"-host") == 0) {      if (strcmp(argv[i],"-host") == 0) {
       i++;        i++;
Line 167  oxmainUsage() {
Line 168  oxmainUsage() {
   fprintf(stderr,"  ox [-ox serverprogram -host name -data portnum -control portnum -monitor]\n");    fprintf(stderr,"  ox [-ox serverprogram -host name -data portnum -control portnum -monitor]\n");
   fprintf(stderr," [-insecure -portfile fname -reverse -pass xxxyyyzzz]");    fprintf(stderr," [-insecure -portfile fname -reverse -pass xxxyyyzzz]");
   fprintf(stderr,"\n");    fprintf(stderr,"\n");
   fprintf(stderr,"Example 1: dc1% ./ox -ox ox_sm1 -host dc1.math.kobe-u.ac.jp -insecure -control 1300 -data 1200\n");    fprintf(stderr,"-reverse: ox server connects to the client.\n");
     fprintf(stderr,"          The client must give a one time password to ox server to connect to the client with -pass option.\n");
     fprintf(stderr,"          The one time password can be seen by ps command, so you must not use this one time password system on an untrustful host.\n");
     fprintf(stderr,"          The one time password should be sent by a safe communication line like ssh and the ox server should be started by ssh. Do not use rsh\n");
     fprintf(stderr,"          If -reverse is not given, the client connect to the ox server\n");
     fprintf(stderr,"          See OpenXM/src/SSkan/Doc/ox.sm1, /sm1connectr\n");
     fprintf(stderr,"-insecure : \n");
     fprintf(stderr,"          If you access to the server from a localhost, you do not need one time password. However, if you access outside of the localhost, a one time password is required. To turn off this restriction, -insecure option is used.\n");
     fprintf(stderr,"Example 1:\n");
     fprintf(stderr,"(Start the ox server): dc1%% ox -ox ~/OpenXM/bin/ox_sm1 -host dc1.math.kobe-u.ac.jp -insecure -control 1200 -data 1300\n");
     fprintf(stderr,"(client):  sm1\n ");
     fprintf(stderr,"           (ox.sm1) run ; \n");
   fprintf(stderr,"           sm1>[(dc1.math.kobe-u.ac.jp) 1300 1200] oxconnect /ox.ccc set\n");    fprintf(stderr,"           sm1>[(dc1.math.kobe-u.ac.jp) 1300 1200] oxconnect /ox.ccc set\n");
     fprintf(stderr,"Example 2:\n");
     fprintf(stderr,"(Start the ox server): dc1%% ox -ox ~/OpenXM/bin/ox_sm1\n");
     fprintf(stderr,"(client): dc1%% sm1\n ");
     fprintf(stderr,"           (ox.sm1) run ; \n");
     fprintf(stderr,"           sm1>[(localhost) 1300 1200] oxconnect /ox.ccc set\n");
   fprintf(stderr,"\n");    fprintf(stderr,"\n");
 }  }
   

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>