Linux-Hams archive - October 1999: Re: axipd - user creation

Re: axipd - user creation

Tomi Manninen (vtngpsr@net.bialystok.pl)
Sat, 2 Oct 1999 18:35:48 +0300 (EEST)


On Sat, 2 Oct 1999, Robert Schelander wrote:

> Do you know where is the right place to insert additional code when
> axipd does automatic user creation?
>
> The main reason I want to do this, is to give each user a www directory
> in his homedirectory and add it to the apache configuration.
> Maybe you know a more comfortable way without adding new code
> and recompile.

I don't really understand this...

> What is the right c-syntax to execute a script? I know C, but I've never
> used it on a Linux machine. (up to now only on Windows based systems)

That's easy. Read the fork(2) and exec(3) manual pages. A script is of
course just like any other program. A simple example of how to fork, exec
a program and wait for it to finish you can find in the LinuxNode sources,
norm_extcmd() in extcmd.c.

-- 
Tomi Manninen           Internet:  terhi.victor@logonet.com
OH2BNS                  AX.25:     vrbgdlfr@roskapostia.tunk.net
KP20ME                  Amprnet:   mepvtfj@102010.org