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

  • Home
  • SEARCH
  • 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 3800208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:51:26+00:00 2026-05-19T13:51:26+00:00

I’m sure this is simple but I just don’t know how to do it…

  • 0

I’m sure this is simple but I just don’t know how to do it…

I have a script for busybox on an embedded system which I would like to run but I don’t know how to run a script

I can log in to busybox and type a few commands but that’s the limit of my knowledge, how do I execute a script that I have in .txt format on my desktop?

  • 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-05-19T13:51:27+00:00Added an answer on May 19, 2026 at 1:51 pm

    Two ways I can think of:

    • The boring but more portable one:

      1. Open the script file in an editor.

      2. Log in to your embedded system and get to a busybox shell prompt.

      3. Copy the first line of the script from the editor.

      4. Paste it to the busybox prompt and press Enter, if necessary.

      5. Copy the next script line from the editor

      6. Paste it to the busybox prompt and press Enter, if necessary.

      7. If there are any more lines, go back to step 5. If you encounter any errors, of course, you should stop and try to find out what’s going on.

      8. You will be tempted to just copy and paste the whole script in one go. Don’t! Depending of the TTY buffering behaviour on your embedded system, the results could be unexpected.

    • The proper way:

      1. Make sure that you have a writable filesystem for your script. Most embedded systems have at least a ramdisk that can be modified, although any changes are lost after rebooting. Once you find such a filesystem, cd into it if necessary.

      2. Find a way to transfer the script file e.g. script.txt to your system. Depending on your embedded system, you could upload it using FTP, TFTP or SMB. If none of these is available, you can try using cat on busybox e.g. $ cat > script.txt, and copy/paste the script into the terminal – press Ctrl + D at the end of the file.

      3. Run the script: $ sh script.txt

      4. Alternatively to step 3, use chmod to make the file executable: $ chmod +x script.txt. Then you can run it: $ ./script.txt.

    Without more information on your embedded device and the script we cannot really help you more.

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

Sidebar

Related Questions

No related questions found

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.