PATH issue in C++ program happening on only one embedded processor with same Linux distro and application
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
A call is being made in a c++ program (that is being started by a shell script)
System("shutdown -r now")
On just one embedded processor I am getting
sh: shutdown: not found
On this same processor I am able to call shutdown from the shell. It resides in /sbin/shutdown and this is in PATH.
If I change the c++ call to
System("/sbin/shutdown -r now")
it works fine. However I am trying to understand what factors would cause this to only happen on ONE processor, if everything is the same.
linux path embedded c++ yocto
New contributor
add a comment |Â
up vote
-1
down vote
favorite
A call is being made in a c++ program (that is being started by a shell script)
System("shutdown -r now")
On just one embedded processor I am getting
sh: shutdown: not found
On this same processor I am able to call shutdown from the shell. It resides in /sbin/shutdown and this is in PATH.
If I change the c++ call to
System("/sbin/shutdown -r now")
it works fine. However I am trying to understand what factors would cause this to only happen on ONE processor, if everything is the same.
linux path embedded c++ yocto
New contributor
what is thePATH
environment variable in this one-processor process?
â thrig
3 mins ago
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
A call is being made in a c++ program (that is being started by a shell script)
System("shutdown -r now")
On just one embedded processor I am getting
sh: shutdown: not found
On this same processor I am able to call shutdown from the shell. It resides in /sbin/shutdown and this is in PATH.
If I change the c++ call to
System("/sbin/shutdown -r now")
it works fine. However I am trying to understand what factors would cause this to only happen on ONE processor, if everything is the same.
linux path embedded c++ yocto
New contributor
A call is being made in a c++ program (that is being started by a shell script)
System("shutdown -r now")
On just one embedded processor I am getting
sh: shutdown: not found
On this same processor I am able to call shutdown from the shell. It resides in /sbin/shutdown and this is in PATH.
If I change the c++ call to
System("/sbin/shutdown -r now")
it works fine. However I am trying to understand what factors would cause this to only happen on ONE processor, if everything is the same.
linux path embedded c++ yocto
linux path embedded c++ yocto
New contributor
New contributor
New contributor
asked 25 mins ago
John
1
1
New contributor
New contributor
what is thePATH
environment variable in this one-processor process?
â thrig
3 mins ago
add a comment |Â
what is thePATH
environment variable in this one-processor process?
â thrig
3 mins ago
what is the
PATH
environment variable in this one-processor process?â thrig
3 mins ago
what is the
PATH
environment variable in this one-processor process?â thrig
3 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
John is a new contributor. Be nice, and check out our Code of Conduct.
John is a new contributor. Be nice, and check out our Code of Conduct.
John is a new contributor. Be nice, and check out our Code of Conduct.
John is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479492%2fpath-issue-in-c-program-happening-on-only-one-embedded-processor-with-same-lin%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
what is the
PATH
environment variable in this one-processor process?â thrig
3 mins ago