Thread View: vmsnet.tpu
2 messages
2 total messages
Started by 92adams
Sat, 23 Jan 1993 20:12
Has anything like this ever been done before?
Author: 92adams
Date: Sat, 23 Jan 1993 20:12
Date: Sat, 23 Jan 1993 20:12
35 lines
2097 bytes
2097 bytes
Hello tpu.gurus!
I've got a series of things that I would like Eve/TPU to do for me.
From everything that I have read and/or seen, TPU can do it for me. What I'd
like to know is has someone else ever written something like this? If not,
then where and at what should I start with in the TPU manual?
I'd like it to do:
1) Run a DCL command file, and capture the output into another buffer.
Yes, I know that can be done with DCL etc.., but I wanted a more
'elegant' solution to it. I'd like it all automatic. Minimal user effort
required.
2) Have it look for the 'From:' line in a message, extract the persons
name/address and put it into a format like '*Name/Addr just extracted* wrote:'
Basically a 'poor mans newsreader.'
That's all the 'wants' that I have at the moment. ;-) If no such
animals exist now, can someone tell me where I'd need to start at? (Yes, I am
a TPU newbie :)
Thanks for any help/ideas in advance!
Erek Adams
+-------------------------------------+---------------------------------------+
| Erek Adams, Student Programmer | Internet: 92adams@hanna2.nlu.edu |
| Northeast Louisiana University | SnailMail: 5330 DeSiard, #43 |
| Monroe, Louisiana 71202 | Monroe, LA 71202 |
| | Home Phone: (318)-343-4729 |
+-------------------------------------+---------------------------------------+
Re: Has anything like this ever been done before?
Author: Carl J Lydick
Date: Sat, 23 Jan 1993 23:00
Date: Sat, 23 Jan 1993 23:00
48 lines
2416 bytes
2416 bytes
In article <930123141203.25003b75@HANNA2.NLU.EDU>, <92adams@hanna2.nlu.edu> writes:
> 1) Run a DCL command file, and capture the output into another buffer.
>
> Yes, I know that can be done with DCL etc.., but I wanted a more
>'elegant' solution to it. I'd like it all automatic. Minimal user effort
>required.
This is rather vague. The TPU primitives for such an operation are
create_process(), send(), and send_eof(). If you'd been more specific about
what you wanted, I might've been able to post an example for you.
> 2) Have it look for the 'From:' line in a message, extract the persons
>name/address and put it into a format like '*Name/Addr just extracted* wrote:'
PROCEDURE WHOFROM
LOCAL R, M;
ON_ERROR
POSITION(M);
ENDON_ERROR;
M:=MARK(NONE);
POSITION(BUFFER_BEGIN);
R:=SEARCH(LINE_BEGIN & 'From:' & SPAN(' '), FORWARD);
POSITION(END_OF(R));
MOVE_HORIZONTAL(1);
R:=SEARCH(REMAIN,FORWARD);
R:=SUBSTR(R, 1, LENGTH(R));
POSITION(BUFFER_BEGIN);
COPY_TEXT(R + " wrote:");
SPLIT_LINE;
POSITION(M);
ENDPROCEDURE;
> That's all the 'wants' that I have at the moment. ;-) If no such
>animals exist now, can someone tell me where I'd need to start at? (Yes, I am
>a TPU newbie :)
You can start by reading the TPU manual, or by issuing the command:
<DO>HELP TPU<RET>
from within EVE.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
understanding of astronomy is purely at the amateur level (or below). So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it. If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads