Article 159157 of comp.os.vms: > I'm having a problem with NCP and some DECservers. The problem is this: I > need a DCL script (or C++ program) to be able to access a DECserver and log > out a specific port. I have tried two approaces: > 2. Use the following DCL script to log out the port (assuming that the > server's non-privileged password is "access" and the privileged password is > "system": > > $ NCP CONN NODE TSTSRV > access > set priv > system > lo port 1 > $ WRITE SYS$OUTPUT "Port 1 was logged out!" > > Unfortunately, the above code never gets past the connection prompt (ie: it > would appear that only the NCP CONN NODE TSTSRV gets issued, and nothing else > afterwards). Both DECnet phase IV's NCP CONN NODE and DECnet/OSI's SET HOST/MOP needs a real terminal for input. Files and even mail-boxes does not work. You can get large packages to handle this. As an alternative, then you can a small C program of mine as: ftp://ftp.hhs.dk/ptd/ptd.zip which will allow you to: $ PTD input-file output-file with an input-file of a format like: $ NCP CONN NODE TSTSRV access set priv system lo port 1 (you will need to logout of the remote port too) The program is very simple and there are f.ex. no flow-control, but for this task it works fine. I use it myself to set my DECservers ! Arne Arne Vajhøj local DECNET: KAL13::ARNE Computer Department PSI: PSI%23831001354030::ARNE Southern Denmark Business School Internet: ARNE@KO.HHS.DK WWW URL: http://www.hhs.dk/~arne/arne.html