How to Execute. Sh File (Raspberrypi) That Is Present in Someother Folder

Sh file name: runme.sh
Path: /home/pi-bridger/

I wanna run a .sh script that is under /home/pi-bridger/. I am able to run it inside the folder by using the command ./runme.sh. I wanna run the script from any other folder by simply calling it.

3

1 Answer

Run it as

/home/pi-bridger/runme.sh
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest