From owner-freebsd-questions Thu Nov 9 6:41:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ringworld.oblivion.bg (pool196-tch-1.Sofia.0rbitel.net [212.95.170.196]) by hub.freebsd.org (Postfix) with SMTP id 312EC37B479 for ; Thu, 9 Nov 2000 06:41:55 -0800 (PST) Received: (qmail 16743 invoked by uid 1000); 9 Nov 2000 14:41:35 -0000 Date: Thu, 9 Nov 2000 16:41:34 +0200 From: Peter Pentchev To: freebsd-questions@freebsd.org Subject: argv[0] modification? Message-ID: <20001109164134.B387@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Does the base system provide a way to execute a program, supplying a different value for its argv[0] (the program name)? Bash does this with the -a flag to the exec builtin; D. J. Bernstein's daemontools (ucspi-tcp) package provides a little tool called argv0; is there anything like this in base? I'm mostly talking 4.x here. I know this would be trivial to implement - it's just a glorified execvp() after a little shuffling around of argv. Is it already done, though? :) G'luck, Peter PS. Please CC: me in replies, as I'm not on -questions. -- I've heard that this sentence is a rumor. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message