Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:30:32+00:00 2026-06-01T08:30:32+00:00

I want to run script file on android Shell using Native C program. I

  • 0

I want to run script file on android Shell using Native C program.

I tried using system function but it’s not working.

result = system("sh ./test.sh");

LOGD("result is %d", result);

system command returns 0 means its not executed script file successfully.

test.sh contains

echo "test...."

Android NDK application could not print test.... when this system call runs.

Even any script can not be started using system call. i checked more than 10 different scripts.

test.sh have 777 permissions

Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:30:34+00:00Added an answer on June 1, 2026 at 8:30 am

    Here i got the answer of this Question on Different post.

    Run Shell Script file On Android Embedded Device using System function in Android NDK

    thanks to all for Help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run a script remotely. But the system doesn't recognize the path.
I want to run vbscript file using cscript.exe. i searched a lot but did'nt
I want to run my .sql script file using my ASP.NET website through ADO.NET.
I want to run a VBScript file from an Ant script. How can I
I want run a script as follows: runner: ssh 'java program &' ssh 'java
If I write program in python 2.7 and I want to run another script
I have a swf file (a flash game). I want to run some script
I want to run my perl script< ftp_files_copy.pl> on windows through batch file<Run_perl_script.bat> at
In a shell script file I am using some commands like scp and make
Inside an event in my code behind file I want to run a script

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.