Google

Go to the first, previous, next, last section, table of contents.


ox_launch_generic

ox_launch_generic(host,launch,server,use_unix,use_ssh,use_x,conn_to_serv)
:: 遠隔プロセスの起動および通信を開始する.
return
整数
host
文字列または 0
launcher, server
文字列
use_unix, use_ssh, use_x, conn_to_serv
整数
  • ox_launch_generic() は, ホスト host 上で, コントロールプロセス launch および サーバプロセス server を起動する. その他の引数は, 使用する protocol の種類, X の使用/不使用, rsh/ssh によるプロセス起動, connect 方法の指定などを行うスイッチである.
  • host が 0 の場合, Asir が動作しているマシン上に, launch, server を立ち上げる. この場合, use_unix の値にかかわらず, UNIX internal protocol が用いられる.
  • use_unix が 1 の場合, UNIX internal protocol を用いる. 0 の場合, Internet protocol を用いる.
  • use_ssh が 1 の場合, `ssh' (Secure Shell) によりコントロール, サーバプロセスを立ち上げる. `ssh-agent' などを利用していな場合, パスワードの入力が必要となる. 相手先で `sshd' が動いていない場合, 自動的に `rsh' が用いられるが, パスワードが必要となる場合には, その場で起動に失敗する.
  • use_x が 1 の場合, X 上での動作を仮定し, 設定されている DISPLAY変 数を用いて, log 表示用 `xterm' のもとで server が起動され る. DISPLAY 変数がセットされていない場合には, 自動的に X なしの設定とな る. DISPLAY が不適切にセットされている場合には, コントロール, サーバがハ ングするので要注意である.
  • conn_to_serv が 1 の場合, Asir (client) が生成したポートに 対し, client が bind,listen し, 起動されたプロセスが connect する. conn_to_serv が 0 の場合, 起動されたプロセスが bind, listen し, client が connect する.
[342] LIB=get_rootdir();
/export/home/noro/ca/Kobe/build/OpenXM/lib/asir
[343] ox_launch_generic(0,LIB+"/ox_launch",LIB+"/ox_asir",0,0,0,0);
1
[344] ox_launch_generic(0,LIB+"/ox_launch",LIB+"/ox_asir",1,0,0,0);
2
[345] ox_launch_generic(0,LIB+"/ox_launch",LIB+"/ox_asir",1,1,0,0);
3
[346] ox_launch_generic(0,LIB+"/ox_launch",LIB+"/ox_asir",1,1,1,0);
4
[347] ox_launch_generic(0,LIB+"/ox_launch",LIB+"/ox_asir",1,1,1,1);
5
[348] ox_launch_generic(0,LIB+"/ox_launch",LIB+"/ox_asir",1,1,0,1);
6
参照
section ox_launch, ox_launch_nox, ox_shutdown, section ox_launch_generic


Go to the first, previous, next, last section, table of contents.