Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* How do I compile over net?
@ 1993-05-21 20:31 John J Cupak Jr CCP
  1993-05-24 16:52 ` Clarification: " John J Cupak Jr CCP
  1993-05-25 19:02 ` falk
  0 siblings, 2 replies; 4+ messages in thread
From: John J Cupak Jr CCP @ 1993-05-21 20:31 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Clarification: How do I compile over net?
  1993-05-21 20:31 How do I compile over net? John J Cupak Jr CCP
@ 1993-05-24 16:52 ` John J Cupak Jr CCP
  1993-05-25 18:22   ` Carl J Lydick
  1993-05-25 19:02 ` falk
  1 sibling, 1 reply; 4+ messages in thread
From: John J Cupak Jr CCP @ 1993-05-24 16:52 UTC (permalink / raw)



To those who responded to my original posting: Thanks! However, from the
responses, I see that I didn't explain my problem clearly enough to get
the answer I needed. So, here's a slightly modified (re)post:

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

The workstation I use ("A1") is connected to a training cluster ("RIVERS")
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 "A1"
workstation, then use the LSE COMPILE command to submit the Pascal 
source file for compilation to a node ("T1") at a *different cluster* 
("PARTICLES") which has the Pascal compiler. 

Assuming that I have logged into "PARTICLES", and have an open DECterm window, 
I know that I could: 

	1. Copy the Pascal file from my "RIVERS" (workstation) directory
           to the current "PARTICLES" directory,
	2. Compile the Pascal file on "PARTICLES" with /DIAGNOSTICS,
	3. Copy the .DIA file back to my workstation
	4. etc.

However, this leaves a copy of the Pascal file on "PARTICLES", together with
its .DIA file. Also, this means that I have to be logged on to the "PARTICLES"
machine.

How do I COMPILE/REVIEW a Pascal file over the network to one machine
("PARTICLES") from my workstation on a different cluster ("RIVERS")?

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Clarification: How do I compile over net?
  1993-05-24 16:52 ` Clarification: " John J Cupak Jr CCP
@ 1993-05-25 18:22   ` Carl J Lydick
  0 siblings, 0 replies; 4+ messages in thread
From: Carl J Lydick @ 1993-05-25 18:22 UTC (permalink / raw)


In article <1993May24.165259.29756@Rapnet.Sanders.Lockheed.Com>, cupak@rapnet.sanders.lockheed.com (John J Cupak Jr CCP) writes:
=How do I COMPILE/REVIEW a Pascal file over the network to one machine
=("PARTICLES") from my workstation on a different cluster ("RIVERS")?
=
=If Anyone has figured out how to submit a compilation on one machine to
=run on another machine, please e-mail me your solution.

It's still not clear what you want.  What's wrong with issuing the command:
	$ PASCAL node::disk:[dir]file/DIA=node::disk:[dir]file
on the remote machine?  (Assuming you've got proxies enabled; if not, you'll
need to use an ACS.)
--------------------------------------------------------------------------------
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How do I compile over net?
  1993-05-21 20:31 How do I compile over net? John J Cupak Jr CCP
  1993-05-24 16:52 ` Clarification: " John J Cupak Jr CCP
@ 1993-05-25 19:02 ` falk
  1 sibling, 0 replies; 4+ messages in thread
From: falk @ 1993-05-25 19:02 UTC (permalink / raw)


In article <1993May21.203141.1533@Rapnet.Sanders.Lockheed.Com>, cupak@rapnet.sanders.lockheed.com (John J Cupak Jr CCP) writes:
> 
> 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:
... <stuff deleted>
> 
> If Anyone has figured out how to submit a compilation on one machine to
> run on another machine, please e-mail me your solution.

A scheme I devised a few years ago to meet this need goes like this:

In LOGIN.COM or SYLOGIN.COM:
    $ FOR*TRAN :== @somewhere:COMPILE FORTRAN
    $ CC       :== @somewhere:COMPILE CC

then somewhere:COMPILE.COM is
$! Compile C or FORTRAN on PEBBLE
$! Usage:
$!    $ @compile CC/FORTRAN parameters and switches
$ place = F$ENVIRONMENT("DEFAULT")
$ file = p2 + ".*"
$ IF F$SEARCH(file) .NES. ""
$ THEN
$    comline = """''p1' ''p2' ''p3' ''p4' ''p5' ''p6'"""
$    SUBMIT/QUEUE=pebble_batch/NOPRINT/KEEP/LOG='place''p1'.LOG -
       /PAR=('place','comline')/NOTIFY somewhere:PEBBLE_COMPILE.COM
$    WRITE SYS$OUTPUT "Compiler output in ''p1'.LOG"
$ ELSE
$    WRITE SYS$OUTPUT "File not found: ''p2'.*"
$ ENDIF

and somewhere:PEBBLE_COMPILE.COM
$! For remote submission of compilation from other nodes
$! See COMPILE.COM
$ SET VERIFY
$ SET DEF 'p1'
$ 'p2'

This, of course, assumes that your workstation is in the same cluster as the
node where the compiler resides.  If not, you would need to add code to
copy the source files, etc.  Also, use of network task or 0 object might
be somewhat more elegant than submitting a batch job, and is probably the
way that I would do it now.

----------------------------------------------------------------------------
Alfred Falk            falk@arc.ab.ca                     A L B E R T A
Information Systems Dept                                R E S E A R C H
Box 8330, Station F                                       C O U N C I L 
Edmonton, Alberta, Canada
T6H 5X2	               (403) 450-5185



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1993-05-25 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-05-21 20:31 How do I compile over net? John J Cupak Jr CCP
1993-05-24 16:52 ` Clarification: " John J Cupak Jr CCP
1993-05-25 18:22   ` Carl J Lydick
1993-05-25 19:02 ` falk

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