home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!deccrl!news.crl.dec.com!dbased.nuo.dec.com!e2big.mko.dec.com!quark.enet.dec.com!lionel
- From: lionel@quark.enet.dec.com (Steve Lionel)
- Newsgroups: comp.os.vms
- Subject: Re: Passing parameters to detached processes.
- Message-ID: <1992Dec29.160259.1836@e2big.mko.dec.com>
- Date: 29 Dec 92 16:02:59 GMT
- References: <1992Dec29.020155.5303@news2.cis.umn.edu>
- Sender: usenet@e2big.mko.dec.com (Mr. USENET)
- Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
- Organization: Digital Equipment Corporation, Nashua NH
- Lines: 33
-
-
- In article <1992Dec29.020155.5303@news2.cis.umn.edu>, rao@moose.cccs.umn.edu
- (Rao Akella) writes:
- >
- |>
- |>I'm running a command procedure in a detached process, invoking it as follows:
- |>
- |> $ RUN SYS$SYSTEM:LOGINOUT/INPUT=PROC.COM/OUTPUT=PROC.OUT/DETACH
- |>
- |>Is there any way to pass parameters to PROC.COM?
- |>
-
- Not through the RUN command. Some alternatives.
-
- 1. Specify /INPUT=PROC2.COM which contains the line:
-
- $ @PROC parameters
-
- 2. Use SUBMIT/PARAM
-
- 3. Use SPAWN (though you can't get a detached process this way.)
-
- 4. Use /ERROR="parameter string" and translate SYS$ERROR in the
- procedure to retrieve the parameters. You should probably
- then do a $DEFINE SYS$ERROR SYS$OUTPUT. This is a hack and
- not something I'd recommend.
- --
-
- Steve Lionel lionel@quark.enet.dec.com
- SDT Languages Group
- Digital Equipment Corporation
- 110 Spit Brook Road
- Nashua, NH 03062
-