[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C programming: Is there an exec (with no additional letters) call?

On Tue, 17 Jun 2003 23:30:15 +0200, Thomas Krennwallner wrote:

> This code snippet will lookup the PATH environment and search for the
> "ps" executable. It will execute it and will pass "ps" as argv[0] and
> "x" as argv[1]. It is equivalent to:
> $ ps x


Don't you mean
$ exec ps x


Best Regards,   |   Hi! I'm a .signature virus. Copy me into
 Sebastian      |   your ~/.signature to help me spread!

Reply to: