Use \" instead of double quote, but the error is still there
I use \" instead of double quote "", but the error is still there
root:~# ./test-small-network-sh
sh: -c: line 2: syntax error: unexpected end of file
========================================
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <signal.h>
/*************************************/
int main()
{
system("if [[\"$quotastat\" == \"\"]]; then echo \"off\" > /var/apache/quota.status fi");
}
|