Answers for "execute shell command"

3

python run a system command

import os
cmd = "git --version"
returned_value = os.system(cmd)  # returns the exit code in unix
Posted by: Guest on April-01-2020
0

start of .sh file

#!/bin/sh
Posted by: Guest on May-30-2020
1

how to execute .sh file in linux

./script-name-here.sh #Chage the "script-name-here" to the name of the .sh file.
Posted by: Guest on October-14-2020

Code answers related to "execute shell command"

Python Answers by Framework

Browse Popular Code Answers by Language