version 1.3, 1999/12/21 04:20:42 |
version 1.4, 1999/12/24 06:57:22 |
|
|
/* $OpenXM: OpenXM_contrib2/asir2000/io/tcpf.c,v 1.2 1999/12/13 01:56:04 noro Exp $ */ |
/* $OpenXM: OpenXM_contrib2/asir2000/io/tcpf.c,v 1.3 1999/12/21 04:20:42 noro Exp $ */ |
#if INET |
#if INET |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 401 char *control_port_str,*server_port_str; |
|
Line 401 char *control_port_str,*server_port_str; |
|
conn_str = conn_to_serv ? "1" : "0"; |
conn_str = conn_to_serv ? "1" : "0"; |
rsh = use_ssh ? "ssh" : RSH; |
rsh = use_ssh ? "ssh" : RSH; |
gethostname(localhost,BUFSIZ); |
gethostname(localhost,BUFSIZ); |
|
#if !defined(VISUAL) |
if ( use_unix ) { |
if ( use_unix ) { |
if ( !fork() ) { |
if ( !fork() ) { |
setpgid(0,getpid()); |
setpgid(0,getpid()); |
Line 426 char *control_port_str,*server_port_str; |
|
Line 427 char *control_port_str,*server_port_str; |
|
fprintf(stderr,"%s\n",cmd); |
fprintf(stderr,"%s\n",cmd); |
sleep(20); |
sleep(20); |
/* system(cmd); */ |
/* system(cmd); */ |
} else { |
} else |
|
#endif /* VISUAL */ |
|
{ |
if ( dname ) |
if ( dname ) |
sprintf(cmd, |
sprintf(cmd, |
"%s -n %s \"xterm -name %s -display %s -geometry 60x10 -e %s %s %s %s %s %s %s>&/dev/null&\">/dev/null", |
"%s -n %s \"xterm -name %s -display %s -geometry 60x10 -e %s %s %s %s %s %s %s>&/dev/null&\">/dev/null", |