Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit c00b9e6b
authored
2023-10-03 11:10:22 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
defdwe
1 parent
f1648dbe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
fosadiaria.py
grep.sh
fosadiaria.py
View file @
c00b9e6
...
@@ -70,14 +70,14 @@ class FosaDiaria():
...
@@ -70,14 +70,14 @@ class FosaDiaria():
def
_BuscarExcelDescargado
(
self
,
tmp
):
def
_BuscarExcelDescargado
(
self
,
tmp
):
rta
=
False
rta
=
False
#cmd = f"""ls {self.CarpetaDescarga} -ls |grep {self.cabezaera}| grep xls | grep -v crdownload""".split(" ")
#cmd = f"""ls {self.CarpetaDescarga} -ls |grep {self.cabezaera}| grep xls | grep -v crdownload""".split(" ")
rte
=
subprocess
.
check_output
([
grepfile
])
#
rte = subprocess.check_output([grepfile])
#os.system(cmd
)
os
.
system
(
grepfile
)
#print(cmd)
#print(cmd)
print
(
rte
)
#
print(rte)
Lines
=
str
(
rte
)
.
split
(
"
\n
"
)
#
Lines = str(rte).split("\n")
#
sleep(0.1)
sleep
(
0.1
)
#
file1 = open(tmp, 'r')
file1
=
open
(
tmp
,
'r'
)
#
Lines = file1.readlines()
Lines
=
file1
.
readlines
()
for
line
in
Lines
:
for
line
in
Lines
:
der
=
str
(
line
)
.
split
(
" "
)
der
=
str
(
line
)
.
split
(
" "
)
#print(1,type(line),type(der))
#print(1,type(line),type(der))
...
@@ -86,7 +86,7 @@ class FosaDiaria():
...
@@ -86,7 +86,7 @@ class FosaDiaria():
#print(3,line,der,der[-1],archivo)
#print(3,line,der,der[-1],archivo)
print
(
archivo
)
print
(
archivo
)
rta
=
archivo
rta
=
archivo
#
file1.close()
file1
.
close
()
os
.
system
(
f
"""rm {tmp}"""
)
os
.
system
(
f
"""rm {tmp}"""
)
return
rta
return
rta
...
...
grep.sh
View file @
c00b9e6
#!/bin/bash
#!/bin/bash
ls /home/juan/Descargas/ -ls |grep Planilla_Diaria-54| grep xls | grep -v crdownload
\ No newline at end of file
\ 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
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment