c - Unix Script syntax errors -
i trying execute simple unix program in cygwin. however, when run these errors.
./unixscript.sh: line 4: syntax error near unexpected token (' '/unixscript.sh: line 4: `int main() { how can script run?
#include<stdio.h> #include<sys/types.h> #include<unistd.h> int main() { fork(); printf("hello world!\n"); return 0; }
Comments
Post a Comment