tml@hemuli.atk.vtt.fi (Tor Lillqvist) (05/21/89)
What is the correct and reliable way to munge the command line of a program on HP-UX (3.01 on the hp9000s800) so that you can change what ps(1) shows? How exactly does ps decide what to output as the "command line"? I would be grateful if someone could send me some example code. For instance, ftpd (the newest version from uunet, which I have installed) tries to do this, but ps shows the command as "[ftpd]". Ftpd writes over both the argv and envp strings, which are located at the bottom of the user stack, is this a good idea? Wouldn't it be best to first copy the environment strings somewhere else and make environ point there? -- Tor Lillqvist Technical Research Centre of Finland, Computing Services (VTT/ATK) tml@hemuli.atk.vtt.fi (130.188.52.2)