oi...
ik heb een vraagje...
ik heb deze code :
nu compile ik enzow, en dan run ik em "./command" maar nou geeft ie een error als ik alles heb ingevuld.
error :
root@earth:~/c# ./command
command:uptime
sh: fg: no job control
root@earth:~/c#
wat is er mis?
(met exec() werkt het ook niet)
ik heb een vraagje...
ik heb deze code :
code:
1
2
3
4
5
6
7
8
9
| #include <stdio.h>
int main()
{
char string[20];
printf("command:");
scanf("%s", string);
system("%s", string);
return 0;
} |
nu compile ik enzow, en dan run ik em "./command" maar nou geeft ie een error als ik alles heb ingevuld.
error :
root@earth:~/c# ./command
command:uptime
sh: fg: no job control
root@earth:~/c#
wat is er mis?
(met exec() werkt het ook niet)