c++ - system() not executed when compiled with arm-none-linux-gnueabi-g++ -



c++ - system() not executed when compiled with arm-none-linux-gnueabi-g++ -

#include <stdio.h> #include <stdlib.h> int main() { printf("hello\n"); system("echo nikhil"); printf("hello\n"); getchar(); homecoming 0; }

when code compiled arm-none-linux-gnueabi-g++ scheme phone call getting skipped, other instructions getting executed except system("echo nikhil")

why happening , how avoid problem?

system() not, in fact, work programs set-user-id or set-group-id privileges on systems on /bin/sh bash version 2, since bash 2 drops privileges on startup... http://linux.die.net/man/3/system

you can seek exec command http://linux.die.net/man/3/exec

c++ linux unix

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -