> Sorry, I probably misled you in saying that ZISFGTM would work properly as > ^%ZISF. It worked for me because I used OPEN PARAMETERS in the HFS device > definition, thereby bypassing a problematic part. However, the following > change to ^%ZISF (_ZISF.m) works for asking mode. > > Insert a line before the current HFSIOO+3 as shown below. This converts the > external form of the mode to the internal form before quitting. > > HFSIOO I > '$D(IOP),%ZTYPE="HFS",'$D(%ZIS("HFSMODE")),'$P(^%ZIS(1,%E,0),"^",4),%ZISOPAR="",$D(^%ZIS(1,%E,1)),$P(^(1),"^",6) > > W ?45,"INPUT/OUTPUT OPERATION: R//" > > Q:'$T D SBR^%ZIS1 I $D(DTOUT)!$D(DFOUT)!$D(DUOUT) S POP=1 Q > > D HOPT:%X="?"!'$$CHECK(%X),HOPT1:%X="??" G HFSIOO:%X="?"!'$$CHECK(%X) > > S:%X]"" %ZISOPAR=$$MODE(%X) Q
I deleted S:%X]"" %ZISOPAR="("""_%X_""")" Q and replaced it with S:%X]"" %ZISOPAR=$$MODE(%X) Q I don't know how to relink but my understanding is that this is taken care of by the OS? Or do I need to run some option with Zlink? I went back and D ^ZTMGRSET followed by D ^DINIT then a reboot. Anyhow... Select OPTION: 2 PRINT FILE ENTRIES OUTPUT FROM WHAT FILE: DEVICE// SORT BY: NAME// START WITH NAME: FIRST// FIRST PRINT FIELD: FIRST PRINT FIELD: .01 NAME THEN PRINT FIELD: Heading (S/C): DEVICE LIST// DEVICE: HFS Host File Server HOST FILE NAME: /tmp/hfs.dat///tmp/file INPUT/OUTPUT OPERATION: R//W [DEVICE IS BUSY] Tried again, but this time took the defaults DEVICE: hfs Host File Server HOST FILE NAME: /tmp/hfs.dat// INPUT/OUTPUT OPERATION: R// and [EMAIL PROTECTED]:/tmp$ cat hfs.dat DEVICE LIST JUL 10,2006 12:05 PAGE 1 NAME ------------------------------------------------------------------------------------------------------------------------------------ BROWSER (CIRN) BROWSER CACHE/NT BROWSER DSM/VMS BROWSER MSM/DOS BROWSER MSM/NT CONSOLE DG FIELD MONITOR FAUX PRINTER GMRA UPDATE RESOURCE GTM-UNIX-CONSOLE GTM-UNIX-NULL GTM-UNIX-TELNET HDIS STATUS RESOURCE DEVICE HDIS VUID RESOURCE DEVICE HFS etc... Select OPTION: 2 PRINT FILE ENTRIES OUTPUT FROM WHAT FILE: DEVICE// SORT BY: NAME// START WITH NAME: FIRST// FIRST PRINT FIELD: FIRST PRINT FIELD: .01 NAME THEN PRINT FIELD: Heading (S/C): DEVICE LIST// DEVICE: hfs Host File Server HOST FILE NAME: /tmp/hfs.dat// INPUT/OUTPUT OPERATION: R// %GTM-E-NOTTOEOFONPUT, Not positioned to EOF on write (sequential organization only) At M source location H^DIO2 %GTM-W-NOTPRINCIO, Output currently directed to device /tmp/hfs.dat I login again- GTM>D Q^DI %GTM-E-NOTTOEOFONPUT, Not positioned to EOF on write (sequential organization only) At M source location V+3^DII %GTM-W-NOTPRINCIO, Output currently directed to device /tmp/hfs.dat GTM>D ^XUP %GTM-E-NOTTOEOFONPUT, Not positioned to EOF on write (sequential organization only) At M source location XUP+2^XUP %GTM-W-NOTPRINCIO, Output currently directed to device /tmp/hfs.dat GTM>D P^DI %GTM-E-NOTTOEOFONPUT, Not positioned to EOF on write (sequential organization only) At M source location V+3^DII %GTM-W-NOTPRINCIO, Output currently directed to device /tmp/hfs.dat GTM>H GTM>D P^DI VA FileMan 22.0 Your Identity(DUZ) is 0(zero). Please identify yourself. Access Code: Select OPTION: ? Answer with OPTION NUMBER, or NAME Choose from: 1 ENTER OR EDIT FILE ENTRIES 2 PRINT FILE ENTRIES 3 SEARCH FILE ENTRIES 4 MODIFY FILE ATTRIBUTES 5 INQUIRE TO FILE ENTRIES 6 UTILITY FUNCTIONS 7 OTHER OPTIONS 8 DATA DICTIONARY UTILITIES 9 TRANSFER ENTRIES Select OPTION: 2 PRINT FILE ENTRIES OUTPUT FROM WHAT FILE: DEVICE// SORT BY: NAME// START WITH NAME: FIRST// FIRST PRINT FIELD: .01 NAME THEN PRINT FIELD: Heading (S/C): DEVICE LIST// DEVICE: HFS Host File Server HOST FILE NAME: /tmp/hfs.dat///tmp/testing.txtINPUT/OUTPUT OPERATION: R//? You may enter a string of codes that represents the following host file input/ouput operation: R = READ ACCESS W = WRITE ACCESS N = NEWVERSION S = FIXED FORMAT V = VARIABLE FORMAT A = APPEND Example valid groupings 'RV', 'NW', 'AWV' INPUT/OUTPUT OPERATION: R//NW [DEVICE IS BUSY] DEVICE: hFS Host File Server HOST FILE NAME: /tmp/hfs.dat// INPUT/OUTPUT OPERATION: R//S [DEVICE IS BUSY] DEVICE: HFS Host File Server HOST FILE NAME: /tmp/hfs.dat// INPUT/OUTPUT OPERATION: R// %GTM-E-NOTTOEOFONPUT, Not positioned to EOF on write (sequential organization only) At M source location H^DIO2 %GTM-W-NOTPRINCIO, Output currently directed to device /tmp/hfs.dat So do I have this wrong - i.e. that I think is a write procedure is really a read, with redirection of the output to the named file? > DEVICE: HOME// HFS Host File Server > HOST FILE NAME: /tmp/temp.txt///home/vista/newtest.txtINPUT/OUTPUT > OPERATION: R//W > > GTM>U IO W "Hello world!" > > GTM>D ^%ZISC > > GTM> > [1]+ Stopped ./runjun06 > [EMAIL PROTECTED]:~$ cat newtest.txt > Hello world! > > > Lloyd > > > > > > ----- Original Message ----- > From: "Ismet Kursunoglu" <[EMAIL PROTECTED]> > To: <hardhats-members@lists.sourceforge.net> > Sent: Monday, July 10, 2006 4:10 AM > Subject: Re: [Hardhats-members] sshd and mumps process hung > > > >> (substitute the actual file name for /tmp/file.txt): > >> > >> S MYIO="/tmp/file.txt" > >> O MYIO W $T > >> C MYIO > > > > GTM>S MYIO="/home/myvista/testIO.txt" > > > > GTM>O MYIO W $T > > 1 > > GTM>C MYIO > > > > GTM>H > > [EMAIL PROTECTED]:~/foia06152006$ ls -la ~/testIO.txt > > -rw-r--r-- 1 myvista myvista 0 2006-07-09 23:21 /home/myvista/testIO.txt > > > > No matter how I setup the "HFS device" it continues to show > > [DEVICE IS BUSY] > > > > > > ************ > > > > OUTPUT FROM WHAT FILE: DEVICE// > > SORT BY: NAME// > > START WITH NAME: FIRST// > > FIRST PRINT FIELD: .01 NAME > > THEN PRINT FIELD: > > Heading (S/C): DEVICE LIST// > > DEVICE: HFS Host File Server > > HOST FILE NAME: /home/myvista/hfs.dat// INPUT/OUTPUT OPERATION: R//W > > > > [DEVICE IS BUSY] > > ************ > > > > > > So then I wondered if could an IO task be occupying the device? > > > > > > Checking Taskman. Current $H=60455,85003 (Jul 09, [EMAIL > > PROTECTED]:36:43) > > RUN NODE=60455,84990 (Jul 09, [EMAIL PROTECTED]:36:30) > > Taskman is current.. > > Checking the Status List: > > Node weight status time $J > > AKC:giant RUN [EMAIL PROTECTED]:36:30 7601 Main Loop > > > > Checking the Schedule List: > > Taskman has no tasks scheduled. > > > > Checking the IO Lists: > > There are no tasks waiting for devices. > > > > Checking the Job List: > > There are no tasks waiting for partitions. > > > > Checking the Task List: > > There are 4 tasks currently running. > > On node AKC:giant there is 1 free Sub-Manager(s). Status: Run > > ****** > > > > I can certainly and have been successfully writing, reading and executing > > files as the user (myvista) who is running GT.M on the system. > > > > Is this something to do with how the device is setup with reference to the > > device number and somehow when I try it doesn't properly set $IO ? > > > > Which defaults to the terminal i.e. > > > > GTM>W $IO > > /dev/pts/1 > > > > And is it this variable that needs to be set to 10 so to gain access to > > the > > HFS device? > > > > Select DEVICE NAME: HFS Host File Server /home/myvista/hfs.dat > > ANOTHER ONE: > > STANDARD CAPTIONED OUTPUT? Yes// (Yes) > > Include COMPUTED fields: (N/Y/R/B): NO// BOTH Computed Fields and Record > > Number > > (IEN) > > > > NUMBER: 10 NAME: HFS > > $I: /home/myvista/hfs.dat ASK DEVICE: YES > > ASK PARAMETERS: NO SIGN-ON/SYSTEM DEVICE: NO > > LOCATION OF TERMINAL: Host File Server > > ASK HOST FILE: YES ASK HFS I/O OPERATION: YES > > OPEN COUNT: 10 SUBTYPE: P-OTHER > > TYPE: HOST FILE SERVER > > > > I have been reading the GT.M documentation which is very interesting, > > > > http://www.sanchez-gtm.com/user_documentation/GTM-PG-UNIX44/wwhelp/wwhimpl/java/html/wwhelp.htm > > > > but I still don't know why I can't write out a file. I'll read chapter 13 > > in Walters > > and see if I can't find out more. > > > > -- > > Ismet B. Kursunoglu, MD, FCCP > > > > Medical Director > > Alaska Clinic, LLC > > 3750 E. Country Field Circle, STE B > > Wasilla, Alaska 99654-6659 > > [EMAIL PROTECTED] > > voice (907)357-7240 > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Hardhats-members mailing list > > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members -- Ismet B. Kursunoglu, MD, FCCP Medical Director Alaska Clinic, LLC 3750 E. Country Field Circle, STE B Wasilla, Alaska 99654-6659 [EMAIL PROTECTED] voice (907)357-7240 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members