From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,c526864a3fae7f71 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,c526864a3fae7f71 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-05-25 13:49:55 PST Xref: gmd.de comp.sys.dec:7896 comp.os.vms:24118 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!janus.arc.ab.ca!titan.arc.ab.ca!falk Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: How do I compile over net? Message-ID: <1993May25.130203.1@titan.arc.ab.ca> From: falk@titan.arc.ab.ca Date: 25 May 93 13:02:03 MDT References: <1993May21.203141.1533@Rapnet.Sanders.Lockheed.Com> Organization: Alberta Research Council Nntp-Posting-Host: titan.arc.ab.ca 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: ... > > 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