raja5259 commited on
Commit
65f0e8d
·
verified ·
1 Parent(s): 5ff991e

output of shellcomand for debug

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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