Closed fatma09 closed 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
You can run "./WTP ." path is used for read configurations and settings.
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");
However, I cannot understand the meaning! Have you any explanation of this problem? Thanks