vollero / openCAPWAP

openCAPWAP
113 stars 83 forks source link

WTP run issue #7

Closed fatma09 closed 9 years ago

fatma09 commented 9 years ago

When I run ./WTP, I get the message: Usage: WTP working_path and after that I get: chdir Faile

I found in the WTP.c the following code: if (argc <= 1) printf("Usage: WTP working_path\n");

if ((pid = fork()) < 0)
    exit(1);
else if (pid != 0)
    exit(0);
else {
    setsid();
    if (chdir(argv[1]) != 0){
        printf("chdir Faile\n");
        exit(1);
    }
    fclose(stdout);
}

However, I cannot understand the meaning! Have you any explanation of this problem? Thanks

merturk commented 9 years ago

You can run "./WTP ." path is used for read configurations and settings.