Hello,
I am new here. I have problem with very easy(14 lines) console program. It run console and u need to enter ip address, after this it will send command to printer.
i tried everything 
Program:
Code:
#include<stdio.h>
int main()
{
char naslov[16] = "000.000.000.000";
printf("Za vnovicni zagon vnesite IP naslov tiskalnika in pritisnite enter:\r\n");
scanf("%s", &naslov);
system("curl -k -X PUT https://" %s "/ProductActions/PowerCycle -O '/tmp/pwrc' 2>&1", naslov);
printf("Tiskalnik z IP naslovom: " % s ", se je ponovno zagnal\r\n", naslov);
return 0;
}
Thanks for replay!