pwd and ls Images
Browse files
app.py
CHANGED
|
@@ -24,14 +24,21 @@ find_txt_usr = os.system("find /usr/ -name captions.csv")
|
|
| 24 |
print(find_txt_home)
|
| 25 |
print(find_txt_usr)
|
| 26 |
|
|
|
|
| 27 |
import subprocess
|
| 28 |
-
|
| 29 |
# shell command to run
|
| 30 |
cmd = "ls -l"
|
| 31 |
-
# run the command and capture the output
|
| 32 |
output1 = subprocess.check_output(cmd, shell=True).decode("utf-8")
|
| 33 |
print(output1)
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
print("Going to invoke make_train_valid_dfs")
|
| 36 |
print("\n\n")
|
| 37 |
|
|
|
|
| 24 |
print(find_txt_home)
|
| 25 |
print(find_txt_usr)
|
| 26 |
|
| 27 |
+
#=============================================
|
| 28 |
import subprocess
|
|
|
|
| 29 |
# shell command to run
|
| 30 |
cmd = "ls -l"
|
|
|
|
| 31 |
output1 = subprocess.check_output(cmd, shell=True).decode("utf-8")
|
| 32 |
print(output1)
|
| 33 |
|
| 34 |
+
cmd = "ls Images"
|
| 35 |
+
output1 = subprocess.check_output(cmd, shell=True).decode("utf-8")
|
| 36 |
+
print(output1)
|
| 37 |
+
|
| 38 |
+
cmd = "pwd"
|
| 39 |
+
output1 = subprocess.check_output(cmd, shell=True).decode("utf-8")
|
| 40 |
+
print(output1)
|
| 41 |
+
#=============================================
|
| 42 |
print("Going to invoke make_train_valid_dfs")
|
| 43 |
print("\n\n")
|
| 44 |
|