Hi! I'm trying to call another c program via shell script in c, but it just pop-up and close again.. here's my code:
Code:char* command = ""; char temp[MAX_LENGTH] = ""; sprintf(temp, "gnome-terminal -e 'bash -c \"./Isopropyl %s\"'", editor -> filename); command = malloc(strlen(temp) + 1); if(command == NULL) return; strcpy(command, temp); system(command);
Edit: The title is incorrect I'm sorry, It should be "Shell script in c"