From owner-freebsd-questions Tue Aug 29 15:56:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from uranium.dashmail.net (uranium.dashmail.net [216.36.26.29]) by hub.freebsd.org (Postfix) with ESMTP id 5353437B423 for ; Tue, 29 Aug 2000 15:56:34 -0700 (PDT) Received: from localhost (ptacek@localhost) by uranium.dashmail.net (8.10.1/8.10.1) with ESMTP id e7TN0rm83648 for ; Tue, 29 Aug 2000 16:00:53 -0700 (PDT) Date: Tue, 29 Aug 2000 16:00:53 -0700 (PDT) From: Chris Ptacek To: freebsd-questions@FreeBSD.ORG Subject: Changing the name of the progam seen by ps etc Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a program that changes the name seen by the ps command by doing a strcpy(argv[0], "NAME") ; This has worked up until we tried it on FreeBSD 4.1. Is there a better way we should be doing this? Thanks for any help. - Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message