We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1455c45 commit f7117c5Copy full SHA for f7117c5
operating-system/files/script.sh
@@ -0,0 +1,3 @@
1
+#! /bin/bash
2
+
3
+echo "This is a shell script"
operating-system/shell-execution.py
@@ -0,0 +1,10 @@
+import os
+import subprocess
4
+script_dir = os.path.dirname(__file__)
5
6
+script_abosulte_path = os.path.join( script_dir + "/files/script.sh")
7
8
+subprocess.call(['sh', script_abosulte_path])
9
10
+os.system("cat /etc/hosts")
0 commit comments