linux execute sh
include
#!/bin/bash
then in terminal
chmod +x <filename>
./<filename>
linux execute sh
include
#!/bin/bash
then in terminal
chmod +x <filename>
./<filename>
how to run a sh file in terminal
# if not already ran, run to change permisions executable.
chmod 755 foo.sh
# then to run the sh file
./foo.sh
how to execute .sh file in linux
./script-name-here.sh #Chage the "script-name-here" to the name of the .sh file.
how to run .sh file
self.returncode = subprocess. run(self.shellScriptPath, input='yesn', text=True).returncode
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us