home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!uwm.edu!linac!att!cbnewsm!cbnewsl!att-out!oucsboss!oucsace!afeldman
- From: afeldman@oucsace.cs.ohiou.edu (Alan E. Feldman)
- Newsgroups: comp.os.vms
- Subject: Re: Setting Host via .com procedure
- Message-ID: <1993Jan25.231444.2740@oucsace.cs.ohiou.edu>
- Date: 25 Jan 93 23:14:44 GMT
- Distribution: usa
- Organization: Ohio University CS Dept,. Athens
- Lines: 25
-
-
- The original poster (mehta@bms.com) wanted a command file that:
-
- > 1 get my USERNAME using f$getjpi
- > 2 issue "SET HOST" to the node whose name I pass into the com file
- > 3 Accept my username as input at the username prompt on the machine to
- > which I am setting host to
-
- Try this: (Yes, I tested it, we are on VMS 5.4.)
-
- $ OPEN/WRITE SPOOK ZIP.COM
- $ WRITE SPOOK "$ SET HOST ''P1'"
- $ USERNAME = F$EDIT(F$GETJPI("","USERNAME"),"COLLAPSE")
- $ WRITE SPOOK USERNAME
- $ CLOSE SPOOK
- $ @ZIP
-
- My apologies if someone else already posted this, but I'm pretty sure
- that they didn't. Also, you can add $ EXIT at the end if you desire.
-
- Alan E. Feldman &-) Dept. of Physics, Ohio U., Athens, OH 45701
- Preferred addresses: FELDMAN@OUALV1.PHY.OHIOU.EDU,
- FELDMAN@OUALVX.PHY.OHIOU.EDU
- If you prefer Bitnet: FELDMAN@UMDENP
- If all else fails: FELDMAN@OUVAXA.UCLS.OHIOU.EDU
-