[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

166.0. "using pseudo-ttys" by SPRITE::OSMAN () Thu Oct 10 1985 12:01

157 mentioned that the PCDRIVER allows eavesdropping another terminal.
Could someone please give some detail about how one actually can do
the eavesdropping once DTM is installed ?

Also, I've noticed I can say

	$ open channel PTY:

at dcl.

Is this useful ?

If so, can someone explain how I might follow this with READ and WRITE
to actually do stuff ?

/Eric
T.RTitleUserPersonal
Name
DateLines
166.1SPRITE::OSMANFri Oct 11 1985 11:2518
When rereading my own note, I realize people might not get the jist.

The main thing I'm interested in *isn't* eavesdropping at all.

I'm interested in how I might use dcl's OPEN, READ, and WRITE to a pty
in order to control things like VNOTES, PHONE, and VTX from a .COM file,
even a .COM file running under batch !

I've got one working (see tool ALLTALK), but it currently uses PTYCON
which requires the user's password.  I'd love to have a version that
doesn't require a password.

I've heard rumors that I can somehow use DTM or even PTY's directly from
dcl, but I still don't know how.

Stan ?  Anyone ?  thanks

/Eric
166.2TOOLS::STANSat Oct 12 1985 18:412
Do you need to read back from the DCL subprocess or would it be good
enough if you could just send input to the subprocess?
166.3SPRITE::OSMANMon Oct 14 1985 12:2115
I need to read back too.

My main interest right now is VNOTES.  I want to write

	EXTRACT/SINCE=date/OUT=file

and read back to see whether I get

	Messages written

or

	Error extracting messages

/Eric
166.4SPRITE::OSMANThu Oct 17 1985 18:3628
My current setup is:

	$ <create two mailboxes, tin: and tout:>
	$ spawn/nowait ptycon attach foo/input=tin:/photo=tout:
	$ open terminal_input tin:
	$ open terminal_output tout:
        :
	:
Now my .COM file can type input at the ptycon subjob by saying

	$ write terminal_input text

and can read back echoes, prompts, outputs, with

	$ read terminal_output variable

The problem is, the first terminal input I specify has to be username
and password.

I'd *love* to avoid this necessity.  Supposedly there's a version of
ptycon lurking that allows /SUBPROCESS which causes the ptycon subjob
to really be a subprocess instead of a separate job.  Does anyone know
where I can get this PTYCON ?

or can DTM be used somehow instead of PTYCON in order to avoid password ?

/Eric

166.5LATOUR::AMARTINFri Oct 18 1985 21:465
I believe that on both Tops-10 and Tops-20 that LOGIN doen't require
the password when the subjob is logging in to an account that the
controlling job is already logged in to.  Perhaps you should send in
a suggestion SPR (before one of our PDP-10 customers beats you to it).
				/AHM