From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 12-DEC-1993 22:49:58.58 To: EVERHART CC: Subj: Re: Duplicate process names.. X-Newsgroups: comp.os.vms Subject: Re: Duplicate process names.. Message-ID: <9DEC199311424806@erich.triumf.ca> From: music@erich.triumf.ca (FRED W. BACH) Date: 9 Dec 1993 11:42 PST Distribution: world Organization: TRIUMF: Tri-University Meson Facility NNTP-Posting-Host: erich.triumf.ca News-Software: VAX/VMS VNEWS 1.41 Lines: 57 To: Info-VAX@CRVAX.SRI.COM X-Gateway-Source-Info: USENET In article <2dudakINN466@dns1.NMSU.Edu>, neds@acca.nmsu.edu (Blue Blaze Irregular) writes... # #[please don't flame me.. I'm an aspiring DCL programmer who doesn't know #all that much about it yet.. My sysadmin is very unfriendly and does not #respond to my e-mail questions.] # # #Okay, here's my problem.. I log into a terminal, run my login.com which #has the line $set process/name="my name" Then, I log into a second #terminal. When it gets to that line in the login.com file, it bombs out #because that process name already exists. How do I test to see if that #process name is already in use, and tell the computer to set a different #process name? # #Tnx in advance.. # # #-- #neds@acca.nmsu.edu BBI Gary "GareBear" Adkins #gary@gnu.ai.mit.edu "If it ain't broke, break it." - me. #garebear@chaos.bsu.edu These views and opinions are mine. #c2mxadk@fre.fsu.umd.edu No one else in their right mind would want them. Some of you purists out there won't like our Operations hack that we use here, but here it is anyway: $enable_messages :=set message/text/facility/identifier/severity $disable_messages :=set message/notext/nofacility/noidentifier/noseverity $disable_messages $set noon $set process/name=OPERATIONS_10 $set process/name=OPERATIONS_9 $set process/name=OPERATIONS_8 $set process/name=OPERATIONS_7 $set process/name=OPERATIONS_6 $set process/name=OPERATIONS_5 $set process/name=OPERATIONS_4 $set process/name=OPERATIONS_3 $set process/name=OPERATIONS_2 $set process/name=OPERATIONS_1 $enable_messages $set on This sets the process name to the lowest one available. If OPERATIONS_1 and OPERATIONS_2 were already taken, the routine would get as far down as Operations_3 and the next two would fail (with no messages and no stopping of login.com's execution) and the process executing this routine would remain with "Operations_3" as its process name. Fred W. Bach , Operations Group | Internet: music@erich.triumf.ca TRIUMF (TRI-University Meson Facility) | Voice: 604-222-1047 loc 327/278 4004 WESBROOK MALL, UBC CAMPUS | FAX: 604-222-1074 University of British Columbia, Vancouver, B.C., CANADA V6T 2A3 These are my opinions, which should ONLY make you read, think, and question. They do NOT necessarily reflect the views of my employer or fellow workers.