Re: cheers

From: Foldi Tamas (crow@kapu.hu)
Date: 04/23/02


Date: Tue, 23 Apr 2002 08:49:18 +0200
From: Foldi Tamas <crow@kapu.hu>
To: KF <dotslash@snosoft.com>

On Mon, Apr 22, 2002 at 11:24:08PM -0700, KF wrote:
> cheers Joost Pol
> */
>
> #include <stdio.h>
> #include <unistd.h>
>
> int main(int argc, char *argv[]) {
> while(dup(1) != -1);
> close(2);
> execl("/usr/bin/keyinit",
> "\nroot 0099 snosoft2 6f648e8bd0e2988a Apr 23,2666 01:02:03\n");
> }
>

Yes, it works fine, but afaik execl(3) should be NULL terminated.

regards,
Crow