From: MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 9-OCT-1992 16:22:11.49 To: info-vax@kl.sri.com CC: Subj: Re: SYS$CREPRC and PRC$M_NOPASSWORD In article <1992Oct6.231714.9666@unlinfo.unl.edu>, mosemann@unlinfo.unl.edu (Russell Mosemann) writes... > I'm have a hard time trying to get PRC$M_NOPASSWORD to work in >SYS$CREPRC. Does anyone have any hints? The code, in C, looks like >this > > flags = PRC$M_DETACH | PRC$M_INTER; > status = SYS$CREPRC(&pidadr, > &image, > &pty_dsc, > &pty_dsc, > &pty_dsc, > 0, > 0, > &prcnam, > 0, > 0, > 0, > flags); > > This works just fine. The pty_dsc is a description of the terminal >side of a pseudoterminal. Image is SYS$SYSTEM:LOGINOUT.EXE. I can >login just fine. The terminal is exactly the one in the description, >the pid is exactly the same, etc. When I change flags to > > flags = PRC$M_DETACH | PRC$M_INTER | PRC$M_NOPASSWORD; > [ stuff deleted ] I believe that you need to specify the UIC for the created process and pass it in the parameter folloging the process name. You might also consider creating a mailbox and and pass the unit number of the mailbox in the second to last parameter to sys$creprc, then read from the mailbox to get the exit status of the detached process. If you are interested I could send you a bit of code as an example. Hope this helps. Stephan Jansen@madraf.astro.wisc.edu >-- >Russell >mosemann@unl.edu