Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: cupak@rapnet.sanders.lockheed.com (John J Cupak Jr CCP)
Subject: How do I compile over net?
Date: Fri, 21 May 93 20:31:41 GMT	[thread overview]
Message-ID: <1993May21.203141.1533@Rapnet.Sanders.Lockheed.Com> (raw)


I am developing a Pascal system under VAX/VMS, and am having problems
trying to compile across the network.

The workstation I use is connected to a cluster with all of the latest
DECset tools (LSE, SCA, MMS, PCA, and DTM), but without a Pascal
compiler.

I would like to use LSE to edit the Pascal source file on the
workstation, then use the LSE COMPILE command to submit the Pascal 
source file for compilation on a *different node* which has the 
Pascal compiler. 

This is *somewhat* like submitting a batch job to perform a compilation:

1. The REMOTE_COMPILE.COM command file:

	$! REMOTE_COMPILE.COM
	$!
	$! CREATE BATCHFILE WITH FILENAME AND OPTIONS
	$!
	$  OPEN /WRITE BATCHFILE BATCHFILE.COM
	$  WRITE       BATCHFILE "$ PASCAL ",P1," ",P2
	$  CLOSE       BATCHFILE
	$!
	$! SUBMIT JOB TO SYS$BATCH
	$! 
	$  SUBMIT/NOPRINT/DELETE BATCHFILE.COM
	$!
	$! WAIT UNTIL BATCH JOB COMPLETES
	$!
	$  SYNCHRONIZE BATCHFILE

2. In the buffer Test.pas, use the COMPILE editor command:

	LSE> COMPILE @REMOTE_COMPILE

3. The COMPILE command caused the Editor to write Test.pas to the disk,
   then spawn a subprocess the execute the following DCL command:

	@REMOTE_COMPILE Test.pas /DIAGNOSTICS

4. The procedure will create the BATCHFILE.COM command file containing 
   the following DCL command:

	$ PASCAL TEST.PAS /DIAGNOSTICS

   The procedure will also submit BATCHFILE.COM to run in batch.

If Anyone has figured out how to submit a compilation on one machine to
run on another machine, please e-mail me your solution.

Thanks,
John

--
John J. Cupak, Jr., CCP       Lockheed DECNet: MERVAX::CUPAK
Lockheed Sanders, Inc.        Internet       : cupak@rapnet.sanders.LOCKHEED.COM
95 Canal Street / NCA15-221   CompuServe     : 72411,3176 
Nashua, NH 03061-0868         Telephone      : (603) 885-2134     FAX: 885-8033


             reply	other threads:[~1993-05-21 20:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-21 20:31 John J Cupak Jr CCP [this message]
1993-05-24 16:52 ` Clarification: How do I compile over net? John J Cupak Jr CCP
1993-05-25 18:22   ` Carl J Lydick
1993-05-25 19:02 ` falk
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox