HDTenEightyP/NetNews huggingface dataset:
From: gezelter@rlgsc.com
Newsgroups: comp.os.vms
Subject: Re: Am I in SYLOGIN?
Date: 23 Jul 92 16:52:12 GMT
Organization: Robert Gezelter Software Consultant, Flushing, NY

In article <1992Jul22.113259.1@utxvms.cc.utexas.edu>, ccdk001@utxvms.cc.utexas.edu writes:
> Anyone know of a simple, fairly fullproof way to determine if an image
> is being run from SYLOGIN.COM or some other known place (step) during
> process creation?
> 
> I have an installed privileged application that I want executed during the
> login process, but I don't want users to be able to execute it directly.
> It does "things" based on an assumed state of that process/environment at
> that time particular time.  Allowing users to change their environment
> (logical names, devices, etc.) and then rerunning this image could be
> a problem in some instances.
> 
> Grabing the procedure depth/name from the clidata doesn't seem fullproof
> enough.   Checking the imagecount in the process header could work, but
> I dunno..  Patching loginout (again!) is also too messy.    I'd appreciate
> any ideas/strategies.
> 
> Thanks,
> 
> ++ Dave
> -----------------------------------------------------------------------
> David Barkelew                  Internet: barkelew@utxvms.cc.utexas.edu
> Unix/VMS Services,              UUCP:     ...!ut-emx!utxvms!barkelew
> Computation Center              THEnet:   UTXVMS::BARKELEW
> University of Texas             BITNET:   BARKELEW@UTXVMS
> Voice: (512)471-3241            FAX:      (512)471-1582
> -----------------------------------------------------------------------
-- 
Dave,
 
This is not quite the answer to the question you asked, but it 
may represent a better solution. 
 
Instead of relying on the fact that the process environment is 
unchanged, there is another alternative. An example of a similar 
application is conventional VMS MAIL (Mail has to reliably find 
your mail file, regardless of your logical name configuration).
  
In the context of device (logical name) configuration, a good 
solution is to FORCE Logical Name Translation to only use 
logical names which are defined in elevated access modes (EXEC) 
or in the System Logical Name Table. Since these names are 
unmodifiable by non-privileged users, you should eliminate the 
potential for problems.
 
Other checks can easily guard against duplicate executions of 
your special program. 
 
I hope that the above is useful, if my explanation is unclear, 
please drop me a note.
 
- Bob
+--------------------------------------------------------------------------+
| Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
| Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
| 35-20 167th Street, Suite 215               Fax:       (on Request)      |
| Flushing, New York  11358-1731                                           |
| United States of America                                                 |
+--------------------------------------------------------------------------+
Xref: sparky comp.os.vms:12886 comp.sys.dec:4260 nz.comp:182 comp.windows.x:14553
Newsgroups: comp.os.vms
Subject: DHV11 configuration switches
From: Clive.Nicolson@bbs.actrix.gen.nz
Date: Fri, 24 Jul 1992 04:31:44 GMT
Organization: Actrix Information Exchange

I have a DHV11 (without a manual) for my VaxStation II running VMS 5.5 .

I had the card installed and found that VMS crashed with a bug check in
kernal mode during the VMS startup phase (bit difficult to know where).

The DHV11 config switches were set DDDDUDUD DDUDDDDU  (D=>open) as viewied
from Q-bus edge connector.

Are the switches set correctly (and the card stuffed) or what are the correct
settings.


Newsgroups: comp.os.vms
From: winalski@adserv.enet.dec.com (Paul S. Winalski)
Subject: Re: Passing socket descriptors to spawned process in UCX
Reply-To: winalski@adserv.enet.dec.com (Paul S. Winalski)
Organization: Digital Equipment Corporation, Nashua NH
Distribution: usa
Date: Tue, 21 Jul 1992 23:11:04 GMT


In article <1992Jul21.210603.20230@njitgw.njit.edu>,
txd6871@hertz.njit.edu writes:
|>
|>I have an application on VMS 5.4 running UCX/TCP-IP(R1.3).
|>
|>The TCP server spawns a process using creprc whenever it gets
|>a new connection from a client process.

Terminology nit:  "spawn" has a specific technical meaning in VMS, namely,
creation of a subprocess using LIB$SPAWN or DCL's SPAWN command.  To avoid
confusion, you shouldn't ever talk about "spawning" a subprocess using $CREPRC.

|> I want to pass the socket
|>descriptor returned by 'accept' to the spawned process. How do i do it.
|>
|>By the way I tried 'vfork' but it did not work.I get the error message
|>`invalid io channel' when i call 'recv'.

I don't think you can do it at all.  It is a fundamental part of VMS process
design that channel numbers (the equivalent to file descriptors on Unix) are
per-process entities and cannot be shared between processes.  However, you
may be able to do this under VMS POSIX.

--PSW
Newsgroups: comp.os.vms
From: robert@triton.jpl.nasa.gov (Robert Angelino)
Subject: Wanted:  Back-end module(s) for GCC to produce either PDP-11...
Reply-To: Allen_Van_Sickel.LAX1B@xerox.com
Organization: Jet Propulsion Laboratory, Pasadena CA
Date: Tue, 28 Jul 1992 16:08:43 GMT

Help for a friend in need with no internet access.

	Wanted:  Back-end module(s) for GCC to produce either PDP-11 native
object code, or MACRO-11 assembler.  GCC will be used on a VAX running VMS as a
cross-compiler to a PDP-11 target.

thanks

reply to Allen_Van_Sickel.LAX1B@xerox.com

-robert
From: mdchaney@fractal.ucs.indiana.edu (M Darrin Chaney)
Subject: Re: How to setup a 'MAIL ONLY' VMS user name
Organization: Indiana University, Bloomington
Date: Tue, 21 Jul 92 14:36:39 GMT

powers@ELROS.STG.TRW.COM writes:
>JREARDON@RCNVMS.RCN.MASS.EDU ("JACK REARDON, POSTMASTER") writes...
>>>   We would like to setup VMS usernames that are restriced to 'just'
>>>VMS Mail.  Have people done this?  We have setup a CLI that 'only'
>>>allows Mail.  Is this THE way to do it?  Any thoughts? Help?
>>
>>Set up captive accounts.  Anything else allows a user with sufficient smarts
>>to do more than you probably want them to.
>>
>The problem of a supposedly mail-only user in a captive account doing a
>SEND/EDIT and then doing something like an INCLUDE LOGIN.COM, altering it,
>and then doing a WRITE LOGIN.COM was addressed by a third party here.  So,
>this warning is a repeat and a waste, in a way.

It goes deeper.  I could *easily* disable that capability simply by using my
own private section file, a mini-EVE.

But, what about this scenario:  I mail myself the new login.com.  Then, I
extract/noheader sys$login:login.com.  Bad news.

In this case, as with the first case, you can simply make the login directory
owned by someone else, with the captive user being able only to read it.
Just make them own their mail directory.

I believe it is possible, but it needs to be thought out (if security is,
as I suspect, your real concern).

	Darrin
-- 

mdchaney@iubacs mdchaney@bronze.ucs.indiana.edu mdchaney@rose.ucs.indiana.edu

"It's a marvel of vegetable containment..."
Newsgroups: comp.os.vms
From: tilden@casbah.acns.nwu.edu (Robert Tilden)
Subject: Printing a DecWindows screen
Organization: Northwestern University, Evanston Illinois.
Distribution: na
Date: Thu, 23 Jul 1992 18:43:14 GMT

Hi,
	What determines where the DecWindows print screen option sends its
(PostScript) file? Is there a way to insert a printer setup string into the
file before it's sent to the queue? 

-Bob Tilden
	tilden@nuhepl.phys.nwu.edu
From: mcmahon@TGV.COM (John 'Fast-Eddie/FuzzFace' McMahon)
Newsgroups: comp.os.vms
Subject: Re: Help: DECTerms disappearing!
Date: 31 Jul 92 07:16:51 GMT
Organization: The Internet

Reply-To: mcmahon@tgv.com


In article <nat.712532319@sol> you write:
=Every
=so often, when I log out of a (DECterm) window, *ALL* my DECterms go poof!!!
=The Clock, Session manager, and Notepad survive.  Any reason why this should
=happen?  What do I need to do to prevent it from happening again?  It is not a
=regular occurance, but often enough to be irritating...

The DECterminal emulator/controller process is crashing.  When it goes, so
goes all of the DECterms.

When you create a DECterm, a controller process acts as the interface between
the user process and the network.  This process usually has the process name
DECW$TE_<mumble> and is usually running SYS$SYSTEM:DECW$TERMINAL.EXE.  Only
one of these processes is created even if you create a 1000 DECterm windows
pointing to the same server.  The emulator, among other things, also acts 
as a multiplexer.

It looks (sort of) like this...

server side               !             !  client side

window 1 <---> X server <---> Network <--> Emulator <---> user process 1
window 2 <---                                        ---> process 2
window 3 <---                                        ---> process etc

The emulator runs as a detatched process.  Later versions of DECwindows
allow you to direct the Terminal Controller output to a file (to see
errrors and stack dumps).  It's documented in the release notes
somewhere...  try using the logical DECW$DECTERM_OUTPUT, I think
that is it.

=Also - startup of DECterms is extremely slow.  Does anyone have any tuning
=suggestions to speed things up?

If it's "tough" to create processes on your system, then DECterms will be slow
since initially two process creations are involved.  There are some tuning
logicals to disable swapping and bump up the Working Set of the controller.
I think that is in the release notes somewhere.

=Thanks in advance,

Null Perspiration...

=You want more diskquota?!  ...Did you bring me some cheesecake?  ;-)

So could I trade a RL02 drive for a cheesecake ?

Cheers!
John 'Fast-Eddie' McMahon    ()
TGV, Incorporated            () "Any networking problem can be solved by
603 Mission Street           ()  the application of 33 miles of Unshielded 
Santa Cruz, California 95060 ()  Twisted Pair (UTP)"   
408-427-4366 or 800-TGV-3440 ()                      [InterOp Spring 1992]
E-Mail: MCMAHON@TGV.COM      ()
From: PARMALEE001@WCSUB.CTSTATEU.EDU (Rich Parmalee)
Newsgroups: comp.os.vms
Subject: RE: porting xnetdb to VMS problems.
Date: 23 Jul 92 13:51:58 GMT
Distribution: world
Organization: The Internet

You might be able to get the program compiled if you define the following
logicals. These came out of a command procedure name demo_build.com from
digital. It has worked for some of the X programs that I have compiled, as long
as they don't rely too heavily on a certain system platform.

$ define/nolog X11 decw$include
$ define/nolog sys sys$library

Hope this is of some help.


Rich Parmalee PARMALEE001@WCSUB.CTSTATEU.EDU
From: lt501_443571@EMUNIX.EMICH.EDU (DAVE PAMPREEN - SUPERVISING CONSULTANT - LEARNING RESOURCES AND TECHNOLOGIES)
Newsgroups: comp.os.vms
Subject: $GETQUI - missing item code
Date: 30 Jul 92 21:58:05 GMT

I am stumped...
   All of the item codes are listed in the file SYS$LIBRARY:STARLET.PAS
for use with Pascal except QUI$_JOB_RETENTION_TIME for use with the system 
service $GETQUIW  I found it in the file SYS$LIBRARY:STARLET.REQ, but that
doesn't help me one bit.  Currently I have to declare that as a constant,
(its value is 95) but I want to use the constant declared in the shared files.
--------------------------------------------------------------------------------
Also,  has anyone had trouble getting the filename with the same system
service?  It will get the file name sometimes and others just return garbage.
No error values are returned.  And yes I am starting with a new queue context,
and job context and all that good stuff.

What would happen if 1 + 1 = 3?  |        Dave Pampreen - Supervising Consultant
                                 |        Learning Technologies     18-J Goddard
                                 |        MAIL TO: pampreen@emunix.emich.edu
From: dragon@NSCVAX.PRINCETON.EDU (Mighty Firebreather)
Newsgroups: comp.os.vms
Subject: RE: Configuring Device Drivers
Date: 30 Jul 92 19:03:48 GMT
Distribution: world
Organization: The Internet


	Debapriya Ray <dp@natinst.com> writes:
>
>	I am writing a device driver in VMS for one of our boards. Usually
>we have a couple of boards and a bunch of devices connected to them. In case
>of our UNIX drivers for similar boards, we have a program to configure the
>driver dynamically, i.e, we can change board/device addresses, change
>interrupt levels, and some other parameters on the fly. The way this is
>done is by opening the executable driver-file and writing into the .exe
>code.
>
>	My question is: How are VMS drivers configured ? Is there any way at
>all of configuring VMS drivers ? Or, everything has to be hard-wired into the
>driver code itself before assembly (which is not what we want) ? If you guys,
>know of any scheme, I'll appreciate it very much if you can pass on the
>information to me. In case you have any further questions, please email me
>at:  dp@natinst.com.
>
>	I'll be glad if you can send emails to me (additionally, if you wish
>to post on the net, its fine), since I am not a regular reader of this
>newsgroup.
>

	See the SYSGEN CONNECT command.  The address of the control and
status register for the board and the interrupt vector(s) can be specified as
well as the number of units.  SYSGEN builds some control blocks that your
driver can access that contains this information. 

	The control blocks are described in detail in Appendix A of the
"VMS Device Support Manual", order number AA-LA88A-TE.  You will need to
become intimately familiar with this manual if you expect to be able to
write an I/O driver.  I predict that you will find it an experience you
will never be able to forget. :-) 


*************************************************************************
*                                                                       *
*                        Here, there be dragons!                        *
*                      dragon@nscvax.princeton.edu                      *
*                                                                       *
*                                                Richard B. Gilbert     *
*************************************************************************

Newsgroups: comp.os.vms
From: hamm@mprgate.mpr.ca (Rob Hamm)
Subject: Mailing to a cluster alias
Keywords: alias, cluster, mail
Organization: MPR Teltech Ltd., Burnaby, B.C., Canada
Date: Thu, 23 Jul 92 17:56:26 GMT


Hi there,
	I've recently upgraded a cluster to VMS 5.5 and the mail alias that used to 
	work on this cluster doesn't anymore.

  we used to ; 	mail nl: clustr::hamm	on a remote node, but this not fails with;

	%MAIL-E-LOGLINK, error creating network link to node CLUSTR
	-SYSTEM-F-UNREACHABLE, remote node is not currently reachable

The alias is defined in ncp on all nodes.  The cluster alias is defined on the clustered 
nodes executors as well with Alias Incoming enabled.

I should note also that the above mailing will work if I execute it from a cluster
member. The problem is when I try to mail from a node not in the cluster to 
the cluster alias.

Can anyone give me hints as to where to look next?

TIA!
-- 
Rob Hamm
MPR Teltech Ltd.
Burnaby B.C. 
Email: hamm@mprgate.mpr.ca

   o
 _/\_>
O,> / O      Go fast, twist the wrist
From: edana@pearl.tufts.edu
Newsgroups: comp.os.vms
Subject: Undelete file program needed!
Date: 30 Jul 92 05:37:10 GMT
Organization: Tufts University - Medford, MA

URGENT! URGENT! URGENT!! URGENT!!!

Some critical files have been purged from a FIles-11 disk and need to
be 'undeleted'. The disk has NOT been written onto since the purge.
So what I need ASAP (if not sooner) is a file un-deletion program.
The caveat is that there are HUNDREDS of versions of the file
to undelete. An executable and/or source (if avalable) would be of great
help. Thanks in advance. Please mail to me directly.

Eric Dana
Mgr. Academic Systems Programming
Tufts Univ.
e-mail: edana@pearl.tufts.edu
Newsgroups: comp.os.vms,comp.misc
From: barrett@aminet.uucp (Keith Barrett)
Newsgroups: comp.os.vms
Subject: Re: Vax to Ultrix delay over decnet
Date: 22 Jul 92 23:41:53 GMT
Reply-To: barrett%aminet@nuconvex.com
Distribution: usa
Organization: Waterbury USENET/UUCP
X-Copyright: (c) 1992 Keith Barrett; May be distributed freely, Not for sale
X-Disclaimer: Statements expressed are not representitive of any employer
X-NewsSoftware: XRN V6.17 Amiga UNIX SVR4

Try this, and se if it helps -- do a  "SET TERM/ALT/TYPE" before
doing your connection. This changes the way VMS buffers terminal I/O.

Keith Barrett
[Who works for DEC during daylight hours :-)]

-- 
-kgb

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UUCP: nuconvex.com!aminet!barrett             Keep circulating the tapes - MST3k
DDN: barrett%aminet.uucp@decwrl.dec.com    // My life is my own - the prisoner
Alternate: barrett@pamsrc.enet.dec.com   \X/  Amiga 3000UX - The Next Generation
--------------------------------------------------------------------------------
From: lionel@quark.enet.dec.com (Steve Lionel)
Newsgroups: comp.os.vms
Subject: Re: FORTRAN OPEN on tape MOUNT/FOREIGN, bug or feature?
Date: 31 Jul 92 13:56:25 GMT
Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
Organization: Digital Equipment Corporation, Nashua NH


In article <id.95YR.OCD@ferranti.com>, jlhall@ferranti.com 
(Jonathan Luke Hall) writes:
|>
|>When using the OPEN statement from a FORTRAN program compiled and
|>LINKed on a 6000-630 on VMS 5.5 accessing a file on a 3480 tape
|>mounted using $MOUNT/FOREIGN, I notice that if I specify
|>RECORDTYPE='FIXED' on the OPEN for write that I have to specify
|>RECORDTYPE='VARIABLE' on the OPEN for read.
|>
|>There is no discrepancy between RECORDTYPEs if either the MOUNT is
|>not FOREIGN and/or the RECORDTYPE is 'VARIABLE' on the write.
|>
|>It this a bug or a feature?
|>-- 

Neither - I think it's a misunderstanding of the way foreign tapes work when
you access them through language I/O (and hence RMS).  A foreign mounted tape
has no "file structure" and is accessed at the block level.  Each tape block
corresponds to one "record".  Tape marks indicate end-of-file on read, and
you get a tape mark written when you close a file that was opened for WRITE.
(And while I'm on the subject, the FORTRAN ENDFILE statement does not write
tapemarks in VAX FORTRAN.)

If you open a foreign-mounted tape for write and specify RECORDTYPE='FIXED',
each WRITE will write fixed-size blocks of whatever you specified as the
RECL in length.  If the written record is "short", the record will be padded
with blanks (if formatted) or nulls (if unformatted).  If you open the tape
for read with RECORDTYPE='FIXED', the records (blocks) on the tape you read
had better be exactly the RECL length or else you'll get an error.  I think
that's what's happening to you.  If you use 'VARIABLE', then you can read
arbitrary-length records (up to the size of RECL, if you specified it, or
the RTL's defaults as documented in the VAX FORTRAN User Manual.)  On write,
'VARIABLE' writes out however much data was in your record, possibly giving
you variable-sized blocks.

With non-foreign (ANSI labelled) tapes there is a file structure but the
basic rules regarding fixed versus variable-length records still apply.
Whether or not you'll get an error depends on the tape file's attributes
and how they match up with what you said in the program, much like a disk
file.  (The one difference being that the "longest record length" is not
kept for tape files, so if you don't specify RECL for RECORDTYPE='VARIABLE'
the RTL chooses a value based on the tape's blocksize.)

I hope this clarifies things for you - if not, feel free to send me mail.

--

Steve Lionel                    lionel@quark.enet.dec.com
SDT Languages Group
Digital Equipment Corporation
110 Spit Brook Road
Nashua, NH 03062
From: rankin@EQL.Caltech.Edu (Pat Rankin)
Newsgroups: comp.os.vms
Subject: Re: DCL Command Definitions...
Date: 23 Jul 92 23:19:25 GMT
Organization: The Internet

> Does anyone out there know of a way I can list all the the verbs that are
> defined in DCLTABLES ?

     Joe Meadows' VERB utility can do that.  The /LIST option gives just
the verb names without all the actual parameter and qualifier details.

> Also, has anyone heard of the verb REM for a reminder
> type of program.  An employee came across this the other day, and we are
> trying to figure out where it came from.

     MultiNet includes a utility called REMIND which ends up in DCLTABLES.
It doesn't seem to be documented, except in multinet:remind.help.

		Pat Rankin, rankin@eql.caltech.edu
From: dorand@rocbi.DNET.roche.com ("Daniel M. Doran, PRTC, phone 88270")
Newsgroups: comp.os.vms
Subject: RE: Need NOTES API or NOTEBOOK structure information
Date: 24 Jul 92 08:33:50 GMT
Distribution: world
Organization: The Internet


> So we want to sugar coat things a little, and one proposal on
> the board is a subscribable service which would, during the wee hours, poll the
> NOTEBOOKs of selected users, and send them MAIL when a threshold of unseen
> messages is detected.  This would eliminate the complaint that while MAIL tells
> them when they log on if it's worth going into MAIL, NOTES doesn't tell them if
> its worth it to enter it, until they've already entered it and executed an 
> UPDATE command.

       What we have implemented is a procedure in the system login. 
       During login, a process is spawned that updates the user's 
       notebook class MAIN and counts the number of unread notes.  It
       them broadcasts a message onto the user's screen telling her the
       number of unread notes in so many conferences.  

 ------------------------------------------------------------------------------
  Daniel M. Doran

 InterNet: DoranD@Rocbi.Dnet.Roche.Com       Pharmaceutical Research -
    Phone: +41-61-688-8270                       New Technologies
           +41-61-688-7080                   F.Hoffmann-La Roche Ltd.   
      Fax: +41-61-688-1745                   CH-4002 Basel, Switzerland 
 ------------------------------------------------------------------------------
From: engelhardt@nbivax.nbi.dk
Newsgroups: comp.os.vms
Subject: DECterm loops on EXIT?
Date: 24 Jul 92 08:35:59 GMT
Organization: Niels Bohr Institute and Nordita, Copenhagen


                                         NBI/Aleph, Copenhagen, 24-JUL-1992

    Hello,

Using DECWindows/mwm and VMS 5.5 the command

CERATE/TERMINAL/DETACH/INPUT=SYS$LOGIN:EXIT.COM

where EXIT.COM contains the single line

$ EXIT

when started from the session manager gives me a process that just loops
eating all my CPU time. Selecting "Exit" from the "File" menu on the
DECterm gives me a process without a DECterm that just loops etc.

Should I consider this a feature?? Relacing EXIT with STOP/ID=0 helps a
lot, but... Any (other) suggestions / explanations??

        --- Allan.

Internet:     Allan.Engelhardt@nbi.dk        |  Allan Engelhardt
HEPnet:       NBIVAX::ENGELHARDT             |  Niels Bohr Institute
Bitnet/EARN:  ENGELH at CERNVM               |  Blegdamsvej 17
Phone direct: (+45)31424284<dial-tone>355    |  DK-2100 Copenhagen
Fax:          (+45)31421016                  |  DENMARK
From: goathunter@wkuvx1.bitnet
Newsgroups: comp.os.vms
Subject: Re: Some DECW questions
Date: 30 Jul 92 17:07:15 CDT
Organization: Western Kentucky University, Bowling Green, KY

In article <1992Jul30.021136.16800@cbfsb.cb.att.com>, bdr@cbnewsg.cb.att.com (brian.d.reed) writes:
> 
> 2) Is there a way to make a list of links?  For example, I want to
>    link to several subjects in bookreader.  I was wanting something
>    like a pull down menu, so that I could just click on one of the
>    choices and have that help window pop up.  I looked through some
>    of the link help, but I'm having trouble visualizing how to use 
>    it besides linking a bookreader window and a mail message.
> 
You can create a Cardfiler file and link the cards to the Bookreader
manuals.  Someone (I no longer remember who) posted here once about
using the cardfiler like Post-It notes---create a card in a file that
contains whatever text you want and link it to one of the books....

Pretty neat stuff.

Hunter
------
Hunter Goatley, VMS Systems Programmer, Western Kentucky University
goathunter@WKUVX1.BITNET, 502-745-5251