self printing program
A C code should be like following and saved as
code.c
#include<stdio.h>
int main(void)
{
system("/bin/bash -c ./test.sh");
return 0;
}
and the called script file test.sh is:
test.sh
#!/bin/bash
cat code.c
A C code should be like following and saved as
code.c
#include<stdio.h>
int main(void)
{
system("/bin/bash -c ./test.sh");
return 0;
}
and the called script file test.sh is:
test.sh
#!/bin/bash
cat code.c