source: WorldVistAEHR/trunk/r/VISTALINK-XOBV/XOBVGTM.m@ 1361

Last change on this file since 1361 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.1 KB
Line 
1XOBVGTM ;ISF/RWF - Vistalink startup for GT.M v5 from xinetd ;8/29/07 11:13
2 ;;1.0;VISTALINK;;WorldVistA 30-Jan-08;Build 4
3 ;Modified from FOIA VISTA,
4 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU
5 ;General Public License See attached copy of the License.
6 ;
7 ;This program is free software; you can redistribute it and/or modify
8 ;it under the terms of the GNU General Public License as published by
9 ;the Free Software Foundation; either version 2 of the License, or
10 ;(at your option) any later version.
11 ;
12 ;This program is distributed in the hope that it will be useful,
13 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;GNU General Public License for more details.
16 ;
17 ;You should have received a copy of the GNU General Public License along
18 ;with this program; if not, write to the Free Software Foundation, Inc.,
19 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20GTMLNX ; -- Linux xinetd multi-thread entry point for GT.M
21 ;
22 NEW XOBEC
23 DO ESET^XOBVTCP
24 ;
25 ; **GTM/linux specific code**
26 SET (IO,IO(0))=$P,@("$ZT=""""")
27 X "U IO:(nowrap:nodelimiter:IOERROR=""TRAP"")" ;Setup device
28 S @("$ZINTERRUPT=""I $$JOBEXAM^ZU($ZPOSITION)"""),X=""
29 X "ZSHOW ""D"":TMP"
30 F %=1:1 Q:'$D(TMP($J,"D",%)) S X=^(%) Q:X["LOCAL"
31 S IO("IP")=$P($P(X,"REMOTE=",2),"@"),IO("PORT")=+$P($P(X,"LOCAL=",2),"@",2)
32 ;End GT.M code
33 ;
34 SET XOBEC=$$NEWOK^XOBVTCPL()
35 IF XOBEC DO LOGINERR^XOBVTCPL(XOBEC,IO)
36 IF 'XOBEC DO COUNT^XUSCNT(1),SPAWN^XOBVLL,COUNT^XUSCNT(-1)
37 QUIT
38 ;
39 ;Sample linux scripts
40 ;xinetd script
41 ;vvvvvvvvvvvvvvvvvvvvvvvvv
42 ;service vistalink
43 ;{
44 ; socket_type = stream
45 ; port = 18001
46 ; type = UNLISTED
47 ; user = vista
48 ; wait = no
49 ; disable = no
50 ; server = /bin/bash
51 ; server_args = /home/vista/dev/vistalink.sh
52 ; passenv = REMOTE_HOST
53 ;}
54 ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 ;
56 ;cat /home/vista/dev/vistalink.sh
57 ;vvvvvvvvvvvvvvvvvvvvvvvvvvvv
58 ;#!/bin/bash
59 ;#RPC Broker
60 ;cd /home/vista/dev
61 ;. ./gtmprofile
62 ;$gtm_dist/mumps -r GTMLNX^XOBVGTM
63 ;exit 0
64 ;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note: See TracBrowser for help on using the repository browser.