I'm trying to create a simple script on my server, basically I would like to sent a string and display it via system function...
    #include <stdio.h>
int main()
{
    char txt[100];
    printf("Insert a text: ");
    fgets(txt, 100, stdin);
    system("echo %s"), txt;
    return 0;
}
Rght now I'm not getting any string just "%s"
any idea why?
 
     
     
     
     
     
    