e-smith-manager/additional/manager.c

14 lines
261 B
C

#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <libgen.h>
#define CGI_PATH "/etc/e-smith/web/functions/"
main(int argc, char *argv[])
{
char cmd[50];
sprintf(cmd, "%s%s", CGI_PATH, basename(argv[0]));
execv(cmd, argv);
return 0;
}