Path: utzoo!mnetor!uunet!husc6!think!ames!pasteur!ucbvax!VENUS.YCC.YALE.EDU!kang%robax.DECnet From: kang%robax.DECnet@VENUS.YCC.YALE.EDU ("ROBAX::KANG") Newsgroups: comp.os.vms Subject: Problem with MicroEmacs inside Mail. Message-ID: <8802212001.AA07526@ucbvax.Berkeley.EDU> Date: 18 Feb 88 18:13:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "ROBAX::KANG" Organization: The Internet Lines: 24 Greetings, I am trying to invoke MicroEmacs V3.9e (Daniel M. Lawrence) inside VMS Mail. For this purpose I wrote a command procedure MAILEMACS.COM as follows: $! MAILEMACS.COM $! DEFINE /USER SYS$INPUT 'F$TRNLNM("SYS$OUTPUT")' $ EMACS == "$$DISK1:[DCLTOOLS.EMACS]EMACS.EXE" $ IF P1 .EQS. "" THEN GOTO NOINPUT $ COPY 'P1' 'P2' $! SET PROTECTION=(S:RWED,G:RWED,O:RWED,W:RWED) 'P2' $NOINPUT: $ EMACS 'P2' $ EXIT When I call it by @mailemacs file1 fil2, I always get system error message: No previlege for the operation. Set protection before EMACS 'P2' does not help. I can execute all these command one by one without problem. It seems that the problem is with the COPY command. Could someone help me out? -- Kang Sun sun@venus.ycc.yale.edu sun@yalevms.bitnet ------