initial commit of file from CVS for e-smith-manager on Mon 7 Aug 11:32:16 BST 2023
This commit is contained in:
13
additional/manager.c
Normal file
13
additional/manager.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user