#include "filesrvmng.h" int usage_status() { char *out, *tmp; int ret = OK; ret = fork_execl_getout(&out, SMBSTATUS_CMD, SMBSTATUS_CMD, NULL); if (out && *out) { // tmp = strstr(out, STRING_SMBSTATUS); // if (tmp && *tmp) { // printf("%s", tmp + strlen(STRING_SMBSTATUS)); // } printf("%s", out); } return ret; }