output of shellcomand for debug
Browse files
app.py
CHANGED
@@ -23,6 +23,15 @@ find_txt_home = os.system("find /home/user/ -name captions.csv")
|
|
23 |
find_txt_usr = os.system("find /usr/ -name captions.csv")
|
24 |
print(find_txt_home)
|
25 |
print(find_txt_usr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
print("Going to invoke make_train_valid_dfs")
|
27 |
print("\n\n")
|
28 |
|
|
|
23 |
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 |
|