Commit c00b9e6b by Juan Pablo dure

defdwe

1 parent f1648dbe
......@@ -70,14 +70,14 @@ class FosaDiaria():
def _BuscarExcelDescargado(self,tmp):
rta = False
#cmd = f"""ls {self.CarpetaDescarga} -ls |grep {self.cabezaera}| grep xls | grep -v crdownload""".split(" ")
rte = subprocess.check_output([grepfile])
#os.system(cmd)
#rte = subprocess.check_output([grepfile])
os.system(grepfile)
#print(cmd)
print(rte)
Lines = str(rte).split("\n")
#sleep(0.1)
#file1 = open(tmp, 'r')
#Lines = file1.readlines()
#print(rte)
#Lines = str(rte).split("\n")
sleep(0.1)
file1 = open(tmp, 'r')
Lines = file1.readlines()
for line in Lines:
der = str(line).split(" ")
#print(1,type(line),type(der))
......@@ -86,7 +86,7 @@ class FosaDiaria():
#print(3,line,der,der[-1],archivo)
print(archivo)
rta = archivo
#file1.close()
file1.close()
os.system(f"""rm {tmp}""")
return rta
......
#!/bin/bash
ls /home/juan/Descargas/ -ls |grep Planilla_Diaria-54| grep xls | grep -v crdownload
\ No newline at end of file
ls /home/juan/Descargas/ -ls |grep Planilla_Diaria-54| grep xls | grep -v crdownload &> /dev/shm/tmpscdecas.txt
\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!