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 9163125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:22:13+00:00 2026-06-17T14:22:13+00:00

I have a bash script which I want to start with arguments by an

  • 0

I have a bash script which I want to start with arguments by an app.
Currently I can generate the command, but how can I execute it?
This app is for jailbroken phones only.
Any solutions for this? I searched a lot, but didn’t found anything.

  • 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-17T14:22:15+00:00Added an answer on June 17, 2026 at 2:22 pm

    If this is a jailbreak app, you can run the command by passing it to the system() function that’s part of the OS, or one of the exec functions.

    So, if you decide to install your script at /Applications/MyApp.app/myscript.sh, then in your app, you could use:

    int result = system("/Applications/MyApp.app/myscript.sh argument1 argument2");
    

    You can install the script as I’ve shown, in your app’s folder, as a resource, or in /usr/bin, or /bin, or wherever you like.

    You don’t mention whether or not you’re installing your app in /Applications, as most jailbreak apps are, or in the normal /var/mobile/Applications/* locations.

    If the above code doesn’t work, please clarify where you want to install your app. Also, depending on whether or not your script requires root privileges, there may be more work necessary. There are some complications if you want to run a shell script as root.

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

Sidebar

Related Questions

Currently I have a bash script which runs the find command, like so: find
I have a Makefile from which I want to call another external bash script
I have a bash script which need to execute some php scripts and to
I have a bash script, that I run like this via the command line:
I have a bash-script in which I want to communicate to the user on
I have a Bash script that repeatedly copies files every 5 seconds. But this
I have a bash script file which starts with a function definition, like this:
I wonder if anyone can help with this? I have a bash script. It
I have a shell script which I want to execute within a Java class.
I have written a bash script which installs a number of packages, however for

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.