-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash.py
More file actions
25 lines (17 loc) · 679 Bytes
/
Copy pathbash.py
File metadata and controls
25 lines (17 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-
'''
Ejecuta el contenido de red.sh de forma periódica.
Se lanza por parte del cliente.
red.sh incluye los comportamientos necesarios para que, utilizando SFTP y SSH, un cliente pueda obtener la información
sobre incidencias que los demás clientes han obtenido.
De esta forma, existen copias redundantes de la información extraída y, en el caso de que se pierda la conexión con el servidor,
no se pierde dicha información.
'''
#Imports necesarios
import time
import os
import stat
os.chmod("red.sh", stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
while True:
os.system("./red.sh")
time.sleep(3)